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 #1286

Relationed with #847

Signed-off-by: Elena Izaguirre <[email protected]>
  • Loading branch information
elenaizaguirre authored and petermetz committed Sep 16, 2021
1 parent 5bf13e9 commit 8a4222a
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 @@ -79,8 +79,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 @@ -111,8 +111,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 @@ -312,19 +312,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 8a4222a

Please sign in to comment.