Skip to content
Snippets Groups Projects
Commit 49f72a6e authored by Pawel Maniora's avatar Pawel Maniora
Browse files

relationship_between_accounts tests

parent c738f6a3
No related branches found
No related tags found
1 merge request!22condenser_api: get_account_votes and get_accounts tests
{
"follows": false,
"follows_blacklists": false,
"ignores": false,
"is_blacklisted": false
}
\ No newline at end of file
{
"follows": true,
"follows_blacklists": false,
"ignores": false,
"is_blacklisted": false
}
\ No newline at end of file
{
"follows": false,
"follows_blacklists": false,
"ignores": true,
"is_blacklisted": false
}
\ No newline at end of file
...@@ -1148,4 +1148,90 @@ ...@@ -1148,4 +1148,90 @@
function: validate_response:compare_response_with_pattern function: validate_response:compare_response_with_pattern
extra_kwargs: extra_kwargs:
method: "list_all_subscriptions" method: "list_all_subscriptions"
directory: "bridge_api_patterns" directory: "bridge_api_patterns"
\ No newline at end of file ---
test_name: Hivemind bridge_api.get_relationship_between_accounts patterns test
marks:
- patterntest # no nonempty result possible for 5mln set
includes:
- !include common.yaml
stages:
- name: get_relationship_between_accounts
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_relationship_between_accounts"
params: {"account1": "steemit", "account2": "good-karma"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_relationship_between_accounts"
directory: "bridge_api_patterns"
---
test_name: Hivemind bridge_api.get_relationship_between_accounts follows patterns test
marks:
- patterntest # no nonempty result possible for 5mln set
includes:
- !include common.yaml
stages:
- name: get_relationship_between_accounts follows
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_relationship_between_accounts"
params: {"account1": "good-karma", "account2": "steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_relationship_between_accounts_follows"
directory: "bridge_api_patterns"
---
test_name: Hivemind bridge_api.get_relationship_between_accounts ignores patterns test
marks:
- patterntest # no nonempty result possible for 5mln set
includes:
- !include common.yaml
stages:
- name: get_relationship_between_accounts ignores
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_relationship_between_accounts"
params: {"account1": "tuck-fheman", "account2": "tonyson"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_relationship_between_accounts_ignores"
directory: "bridge_api_patterns"
# get_relationship_between_accounts is_blacklisted and follows_blacklists should be implemented after switching to tests over 5 mln blocks.
\ 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