diff --git a/hived/pyresttest_api_tests/database_api/database_api_test.yaml b/hived/pyresttest_api_tests/database_api/database_api_test.yaml index b71dceaae5dc11a1d5c01d71cce56704ba21d7e4..84e9a47968723e66abcca59c30fbd048e708128a 100644 --- a/hived/pyresttest_api_tests/database_api/database_api_test.yaml +++ b/hived/pyresttest_api_tests/database_api/database_api_test.yaml @@ -232,3 +232,10 @@ - method: "list_vesting_delegation_expirations" - args: '{ "start": ["1970-01-01T00:00:00", 0], "limit": 10, "order": "by_expiration" }' - <<: *base_test + +- test: + - name: "find_vesting_delegation_expirations" + - variable_binds: + - method: "find_vesting_delegation_expirations" + - args: '{ "account": "giftgiver" }' + - <<: *base_test diff --git a/hived/pyresttest_api_tests/database_api/find_vesting_delegation_expirations.schema.json b/hived/pyresttest_api_tests/database_api/find_vesting_delegation_expirations.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..38ab23fb6b31699feb65a5fa9a8112c6aea4e079 --- /dev/null +++ b/hived/pyresttest_api_tests/database_api/find_vesting_delegation_expirations.schema.json @@ -0,0 +1,70 @@ +{ + "$schema": "http://json-schema.org/schema#", + "additionalProperties": false, + "type": "object", + "properties": { + "jsonrpc": { + "type": "string" + }, + "result": { + "type": "object", + "properties": { + "delegations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "delegator": { + "type": "string" + }, + "vesting_shares": { + "type": "object", + "properties": { + "amount": { + "pattern": "[0-9]+", + "type": "string" + }, + "precision": { + "type": "integer" + }, + "nai": { + "pattern": "^@@[0-9]+$", + "type": "string" + } + }, + "required": [ + "amount", + "nai", + "precision" + ] + }, + "expiration": { + "type": "string" + } + }, + "required": [ + "delegator", + "expiration", + "id", + "vesting_shares" + ] + } + } + }, + "required": [ + "delegations" + ] + }, + "id": { + "type": "integer" + } + }, + "required": [ + "id", + "jsonrpc", + "result" + ] +}