Skip to content

Commit

Permalink
fix: openapi validation test for xdai plugin
Browse files Browse the repository at this point in the history
Includes tests for endpoints deployContractV1,
invokeContractV1 and runTransactionV1, each of them
with test cases:
  - Right request
  - Request including an invalid parameter
  - Request without a required parameter

Closes hyperledger#1288

Relationed with hyperledger#847

Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
  • Loading branch information
elenaizaguirre authored and RafaelAPB committed Nov 19, 2021
1 parent f29e586 commit c8d0bcb
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,19 @@
},
"transactionHash": {
"type": "string",
"minLength": 64,
"maxLength": 64,
"pattern": "/^0x([A-Fa-f0-9]{64})$/"
"minLength": 66,
"maxLength": 66,
"pattern": "^0x([A-Fa-f0-9]{64})$"
},
"transactionIndex": {
"type": "number",
"nullable": false
},
"blockHash": {
"type": "string",
"minLength": 64,
"maxLength": 64,
"pattern": "/^0x([A-Fa-f0-9]{64})$/"
"minLength": 66,
"maxLength": 66,
"pattern": "^0x([A-Fa-f0-9]{64})$"
},
"blockNumber": {
"type": "number",
Expand Down
Loading

0 comments on commit c8d0bcb

Please sign in to comment.