Skip to content
Snippets Groups Projects
Commit 87c44578 authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

[ABW]: tests for muting as well as some negative for bridge.get_discussion

parent f4a878d3
No related branches found
No related tags found
1 merge request!204tests for muting as well as some negative for bridge.get_discussion
---
test_name: Hivemind bridge_api.get_discussion patterns test
marks:
- patterntest # alice follows muted of ignoreall who ignores gtg (mock data) - author of some comments
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":"chitty", "permlink":"a-balanced-voting-system-is-impossible-with-current-witness-s-payouts", "observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "mutes_comments_indirect"
directory: "bridge_api_patterns/get_discussion"
{}
---
test_name: Hivemind bridge_api.get_discussion gtg patterns test
marks:
- patterntest # ignoreall ignores gtg (mock data) - author of top post
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", "observer":"ignoreall"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "mutes_top_post"
directory: "bridge_api_patterns/get_discussion"
---
test_name: Hivemind bridge_api.get_discussion gtg patterns test
marks:
- patterntest # alice follows muted of ignoreall who ignores gtg (mock data) - author of top post
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", "observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "mutes_top_post"
directory: "bridge_api_patterns/get_discussion"
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