Skip to content
Snippets Groups Projects
Commit 5ec74495 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'get_follow_list' into 'master'

bridge.get_follow_list and bridge.does does_user_follow_any_lists tests tested on anyx.io

See merge request !191
parents b04eb25e 6ba60e6d
No related branches found
No related tags found
1 merge request!191bridge.get_follow_list and bridge.does does_user_follow_any_lists tests tested on anyx.io
Showing
with 441 additions and 0 deletions
{
"code": -32602,
"data": "invalid account char",
"message": "Invalid parameters"
}
---
test_name: Hivemind bridge_api.get_follow_list wrong account name
marks:
- patterntest # tested on anyx.io
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_follow_list
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_follow_list"
params: {"observer": "!@#$"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "wrong_account"
directory: "bridge_api_negative/get_follow_list"
error_response: true
---
test_name: Hived bridge_api does_user_follow_any_lists blocktrades
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api does_user_follow_any_lists blocktrades
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.does_user_follow_any_lists"
params: {"observer": "blocktrades"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blocktrades"
directory: "bridge_api_patterns/get_follow_list"
---
test_name: Hived bridge_api does_user_follow_any_lists jes285
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api does_user_follow_any_lists jes285
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.does_user_follow_any_lists"
params: {"observer": "jes285"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "jes285"
directory: "bridge_api_patterns/get_follow_list"
true
[]
\ No newline at end of file
---
test_name: Hived bridge_api get_follow_list blocktrades follow_type blacklisted
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list blocktrades blacklisted
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "blocktrades", "follow_type": "blacklisted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blocktrades_blacklisted"
directory: "bridge_api_patterns/get_follow_list"
[]
\ No newline at end of file
---
test_name: Hived bridge_api get_follow_list blocktrades follow_type muted
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list blocktrades muted
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "blocktrades", "follow_type": "follow_blacklist"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blocktrades_follow_blacklist"
directory: "bridge_api_patterns/get_follow_list"
[]
\ No newline at end of file
---
test_name: Hived bridge_api get_follow_list blocktrades follow_type follow_muted
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list blocktrades follow_muted
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "blocktrades", "follow_type": "follow_muted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blocktrades_follow_muted"
directory: "bridge_api_patterns/get_follow_list"
[
{
"blacklist_description": "",
"muted_list_description": "",
"name": "ranko-k"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "vegaiq"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "coffeelatte"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "wakstim"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "fitness-help"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "celinee"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "dtworker"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "cryptomonitor"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "erickrivera"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "angelasmith"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "steemerhrn"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "r0ssi"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "izbing"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "germanlifestyle"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "kachful"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "kachful19"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "chloeting"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "sabirisgd48"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "jout"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "onedevotedlife"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "syiputri"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "deep9717"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "dakotakaiser"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "heimindanger"
}
]
\ No newline at end of file
---
test_name: Hived bridge_api get_follow_list blocktrades follow_type muted
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list blocktrades muted
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "blocktrades", "follow_type": "muted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blocktrades_muted"
directory: "bridge_api_patterns/get_follow_list"
[]
---
test_name: Hived bridge_api get_follow_list invalid account name (observer)
marks:
- patterntest # tested on anyx.io
# account can not start with "-"
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list invalid_account name
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "---", "follow_type": "muted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "invalid_account"
directory: "bridge_api_patterns/get_follow_list"
[
{
"blacklist_description": "",
"muted_list_description": "",
"name": "stan"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "ned"
},
{
"blacklist_description": "",
"muted_list_description": "",
"name": "berniesanders"
}
]
---
test_name: Hived bridge_api get_follow_list jes2850 follow_type blacklisted
marks:
- patterntest # tested on anyx.io
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list jes2850 blacklisted
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "jes2850", "follow_type": "blacklisted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "jes2850_blacklisted"
directory: "bridge_api_patterns/get_follow_list"
[
{
"blacklist_description": null,
"muted_list_description": null,
"name": "null"
}
]
---
test_name: Hived bridge_api get_follow_list jes2850 follow_type follow_blacklist
marks:
- patterntest # tested on anyx.io
# in response null is an account?
includes:
- !include ../../common.yaml
stages:
- name: bridge_api get_follow_list jes2850 follow_blacklist
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_follow_list"
params: {"observer": "jes2850", "follow_type": "follow_blacklist"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "jes2850_follow_blacklist"
directory: "bridge_api_patterns/get_follow_list"
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