Skip to content
Snippets Groups Projects
Commit ec037647 authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

added list_savings_withdrawals test

parent f78b00d1
No related branches found
No related tags found
No related merge requests found
...@@ -204,3 +204,10 @@ ...@@ -204,3 +204,10 @@
- method: "list_savings_withdrawals" - method: "list_savings_withdrawals"
- args: '{ "start": ["null", 0], "limit": 10, "order": "by_from_id" }' - args: '{ "start": ["null", 0], "limit": 10, "order": "by_from_id" }'
- <<: *base_test - <<: *base_test
- test:
- name: "find_savings_withdrawals"
- variable_binds:
- method: "find_savings_withdrawals"
- args: '{ "account": "voltair" }'
- <<: *base_test
{
"$schema": "http://json-schema.org/schema#",
"additionalProperties": false,
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"withdrawals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"memo": {
"type": "string"
},
"request_id": {
"type": "integer"
},
"amount": {
"type": "object",
"properties": {
"amount": {
"pattern": "[0-9]+",
"type": "string"
},
"precision": {
"type": "integer"
},
"nai": {
"pattern": "^@@[0-9]+$",
"type": "string"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"complete": {
"type": "string"
}
},
"required": [
"amount",
"complete",
"from",
"id",
"memo",
"request_id",
"to"
]
}
}
},
"required": [
"withdrawals"
]
},
"id": {
"type": "integer"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment