Skip to content

Commit

Permalink
Refactor: RA-79: Change address with UTxO for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BerezinD committed Apr 30, 2024
1 parent 3ff5e70 commit e728451
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion postmanTests/Rosetta-java-env.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
{
"key": "TestAccountAddressWithUTXO",
"value": "addr_test1vzs0r2nae22szlq3ul3h8t4u7rz9dr850mqjh98caddm4zcypzjjt",
"value": "addr_test1vpf8vv32c7yzgdqh8hxxgsvstannw6ym6vymdzkckds5lkq4jtrmx",
"type": "default",
"enabled": true
},
Expand Down
2 changes: 1 addition & 1 deletion postmanTests/Rosetta-javaDevEnv.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
{
"key": "TestAccountAddressWithUTXO",
"value": "addr_test1vzs0r2nae22szlq3ul3h8t4u7rz9dr850mqjh98caddm4zcypzjjt",
"value": "addr_test1vpf8vv32c7yzgdqh8hxxgsvstannw6ym6vymdzkckds5lkq4jtrmx",
"type": "default",
"enabled": true
},
Expand Down
6 changes: 4 additions & 2 deletions postmanTests/rosetta-java.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"console.log(pm.response.json())",
"console.log(pm.response.json());",
"pm.test(\"Body has not empty address\", function () {",
" const current_block_index = Number.parseInt(pm.environment.get('blockIndex'));",
" const current_block_hash = pm.environment.get('blockHash');",
Expand All @@ -906,8 +906,10 @@
"const coin_with_metadata_index = pm.response.json().coins.findIndex(el => el.metadata != null);",
"var coin_identifier;",
"",
"if (coin_with_metadata_index !== undefined) {",
"if (coin_with_metadata_index !== -1) {",
" coin_identifier = pm.response.json().coins[coin_with_metadata_index].coin_identifier.identifier;",
"} else {",
" console.warn(\"No UTxO with metadata was found\")",
"};",
"",
"pm.test(\"UTxO has token policyId(s)\", function () {",
Expand Down

0 comments on commit e728451

Please sign in to comment.