Commit 9812df8c authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'get_reblogged_by' into 'master'

condenser_api get_reblogged_by tests moved to folder

See merge request !90
parents 3189c96a 420bcb54
{
"code": -32602,
"data": "too many positional arguments",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "too many positional arguments",
"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: ["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"
}
{
"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
- failing
- xfail # reblogging does not work properly
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":"skypilot","permlink":"melting-rock"}
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
......@@ -27,37 +27,6 @@
method: "get_blog_entries"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_reblogged_by patterns test
marks:
- patterntest
- failing
- xfail # reblogging does not work properly
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":"skypilot","permlink":"melting-rock"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_reblogged_by"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_active_votes patterns test
......
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