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 25cddfffd21f3ed944330adf7b9dc0d42f137091..f7dac9c11f80aab5c37930cf97a3bba83618cfca 100644 --- a/hived/pyresttest_api_tests/database_api/database_api_test.yaml +++ b/hived/pyresttest_api_tests/database_api/database_api_test.yaml @@ -141,3 +141,10 @@ - method: "find_owner_histories" - args: '{ "owner": "null" }' - <<: *base_test + +- test: + - name: "list_account_recovery_requests" + - variable_binds: + - method: "list_account_recovery_requests" + - args: '{ "start": "null", "limit": 1, "order": "by_account" }' + - <<: *base_test diff --git a/hived/pyresttest_api_tests/database_api/list_account_recovery_requests.json.schema b/hived/pyresttest_api_tests/database_api/list_account_recovery_requests.json.schema new file mode 100644 index 0000000000000000000000000000000000000000..fa13179fc2cc473917a6cd9261a2abe053b9f423 --- /dev/null +++ b/hived/pyresttest_api_tests/database_api/list_account_recovery_requests.json.schema @@ -0,0 +1,77 @@ +{ + "$schema": "http://json-schema.org/schema#", + "additionalProperties": false, + "type": "object", + "properties": { + "jsonrpc": { + "type": "string" + }, + "result": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "account_to_recover": { + "type": "string" + }, + "new_owner_authority": { + "type": "object", + "properties": { + "weight_threshold": { + "type": "integer" + }, + "account_auths": { + "type": "array" + }, + "key_auths": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": [ + "integer", + "string" + ] + } + } + } + }, + "required": [ + "account_auths", + "key_auths", + "weight_threshold" + ] + }, + "expires": { + "type": "string" + } + }, + "required": [ + "account_to_recover", + "expires", + "id", + "new_owner_authority" + ] + } + } + }, + "required": [ + "requests" + ] + }, + "id": { + "type": "integer" + } + }, + "required": [ + "id", + "jsonrpc", + "result" + ] +}