Commit b89bf3d3 authored by Pawel Maniora's avatar Pawel Maniora

bridge api test separation last part

parent 187d8da4
---
test_name: Hivemind bridge_api.get_discussion gtg patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_discussion gtg patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_discussion"
params: {"author":"gtg", "permlink":"missing-rewards-while-mining"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_discussion"
---
test_name: Hivemind bridge_api.get_discussion patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
- failing
- xfail # gray
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_discussion patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_discussion"
params: {"author":"steemit", "permlink":"firstpost"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_discussion"
---
test_name: Hivemind bridge_api.get_post gtg patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_post gtg patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post"
params: {"author":"gtg", "permlink":"heavy-duty-witness-node-infrastructure"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_post"
---
test_name: Hivemind bridge_api.get_post patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_post patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post"
params: {"author":"steemit", "permlink":"firstpost"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_post"
---
test_name: Hivemind bridge_api.get_post_header patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_post_header
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post_header"
params: {"author":"gtg", "permlink":"missing-rewards-while-mining"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_post_header"
\ No newline at end of file
---
test_name: Hivemind bridge_api.get_ranked_posts created patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts created patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"created","tag":"","observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "created"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts hot patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts hot patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"hot","tag":"","observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hot"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts muted patterns test
marks:
- patterntest
- failing
- xfail # empty results caused by lack of is_grayed handling (same as gray elsewhere)
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts muted patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"muted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "muted"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts payout patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts payout patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"payout"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "payout"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts payout_comments patterns test
marks:
- patterntest
- failing
- xfail # gray
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts payout_comments patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"payout_comments"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "payout_comments"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts promoted patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts promoted patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"promoted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "promoted"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"trending","tag":"","observer":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts tag hive-123 patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts tag hive-123 patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"trending","tag":"hive-123"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "tag_hive-123"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts tag petrodollar patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts tag petrodollar patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"trending","tag":"petrodollar","observer":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "tag_petrodollar"
directory: "bridge_api_patterns/get_ranked_posts"
{
"code": -32602,
"data": "invalid sort",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "invalid sort",
"message": "Invalid parameters"
}
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