-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix v2 tests and add extra spec tests
Signed-off-by: Nana-EC <nana.essilfie-conduah@hedera.com>
- Loading branch information
Showing
5 changed files
with
94 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...est/__tests__/specs/contracts-result-details-14-timestamp-transaction-not-found.spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"description": "Contract results api call for a specific contract using contract id and timestamp with no transaction match", | ||
"setup": { | ||
"contractresults": [ | ||
{ | ||
"amount": 30, | ||
"bloom": [5, 5], | ||
"call_result": [6, 6], | ||
"consensus_timestamp": "167654000123456", | ||
"contract_id": 5001, | ||
"created_contract_ids": [7001], | ||
"error_message": "", | ||
"function_parameters": [7, 7], | ||
"function_result": [8, 8], | ||
"gas_limit": 987654, | ||
"gas_used": 123, | ||
"payer_account_id": 8001 | ||
} | ||
], | ||
"recordFiles": [], | ||
"transactions": [] | ||
}, | ||
"urls": [ | ||
"/api/v1/contracts/0.0.5001/results/167654.000123456", | ||
"/api/v1/contracts/0.5001/results/167654.000123456", | ||
"/api/v1/contracts/5001/results/167654.000123456" | ||
], | ||
"responseStatus": 404, | ||
"responseJson": { | ||
"_status": { | ||
"messages": [ | ||
{ | ||
"message": "No correlating transaction" | ||
} | ||
] | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...rest/__tests__/specs/contracts-result-details-15-transactionid-result-not-found.spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"description": "Contract results api call for a specific contract using transactionId with no result match", | ||
"setup": { | ||
"contractresults": [ | ||
{ | ||
"amount": 30, | ||
"consensus_timestamp": "167654000123457", | ||
"contract_id": 5001, | ||
"payer_account_id": 8001 | ||
} | ||
], | ||
"recordFiles": [ | ||
{ | ||
"index": 17, | ||
"consensus_start": 167654000123450, | ||
"consensus_end": 167654000123460, | ||
"hash": "6ceecd8bb224da491" | ||
} | ||
], | ||
"transactions": [ | ||
{ | ||
"consensus_timestamp": 167654000123456, | ||
"entity_id": 5001, | ||
"payerAccountId": "8001", | ||
"result": 33, | ||
"transaction_hash": "519a008fabde4d", | ||
"valid_start_timestamp": 167654000123455 | ||
} | ||
] | ||
}, | ||
"url": "/api/v1/contracts/results/0.0.8001-167654-000123455", | ||
"responseStatus": 404, | ||
"responseJson": { | ||
"_status": { | ||
"messages": [ | ||
{ | ||
"message": "Not found" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters