Skip to content
Snippets Groups Projects
Commit fdd4f93a authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

[WIP] Added database_api pattern test yaml definition

parent ba4ce626
No related branches found
No related tags found
1 merge request!15Set of tests for hivemind using tavern library
null []
\ No newline at end of file \ No newline at end of file
---
test_name: Hivemind database_api.list_comments patterns test
marks:
- patterntest
- failing
includes:
- !include common.yaml
stages:
- name: list_comments
request:
url: "{service.proto:s}://{service.server:s}:{service.port:d}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_comments"
params: {"start":["steemit","firstpost"], "limit":10, "order":"by_permlink"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "list_comments"
directory: "database_api_patterns"
---
test_name: Hivemind database_api.find_comments patterns test
marks:
- patterntest
- failing
includes:
- !include common.yaml
stages:
- name: find_comments
request:
url: "{service.proto:s}://{service.server:s}:{service.port:d}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.find_comments"
params: {"start":[["steemit","firstpost"]], "limit":10, "order":"by_author"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "find_comments"
directory: "database_api_patterns"
\ No newline at end of file
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