Commit 0c1bd5c6 authored by Paulina Czempiel's avatar Paulina Czempiel

condenser_api get_reblogged_by tests moved to folder

parent b586718d
{
"code": -32602,
"data": "too many positional arguments",
"message": "Invalid parameters"
}
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_reblogged_by patterns test 8080
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_reblogged_by
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_reblogged_by"
params: ["camilla", "a-quick-steem-elf-drawing", "aa"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "invalid_params"
directory: "condenser_api_negative/get_reblogged_by"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid account (not specified)",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_reblogged_by patterns test 8080
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_reblogged_by
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_reblogged_by"
params: ["", ""]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_params"
directory: "condenser_api_negative/get_reblogged_by"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_reblogged_by patterns test
marks:
- patterntest # result is empty because reblogging functionality started past 5mln blocks
includes:
- !include ../../common.yaml
stages:
- name: get_reblogged_by
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_reblogged_by"
params: {"author":"steemit","permlink":"firstpost"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "first"
directory: "condenser_api_patterns/get_reblogged_by"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment