Skip to content

Commit

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

Closes hyperledger-cacti#1286

Relationed with hyperledger-cacti#847

Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
  • Loading branch information
elenaizaguirre committed Sep 14, 2021
1 parent d54c6a3 commit ea61f3e
Show file tree
Hide file tree
Showing 2 changed files with 439 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"ethAccount": {
"type": "string",
"description": "The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication.",
"minLength": 64,
"maxLength": 64,
"minLength": 66,
"maxLength": 66,
"nullable": false
},
"secret": {
Expand All @@ -80,8 +80,8 @@
"ethAccount": {
"type": "string",
"description": "The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication.",
"minLength": 64,
"maxLength": 64,
"minLength": 66,
"maxLength": 66,
"nullable": false
},
"keychainEntryKey": {
Expand Down Expand Up @@ -112,8 +112,8 @@
"ethAccount": {
"type": "string",
"description": "The ethereum account (public key) that the credential belongs to. Basically the username in the traditional terminology of authentication.",
"minLength": 64,
"maxLength": 64,
"minLength": 66,
"maxLength": 66,
"nullable": false
},
"secret": {
Expand Down Expand Up @@ -313,19 +313,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 ea61f3e

Please sign in to comment.