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

[ABW]: added tests for get_followers/get_following

parent 14313491
No related branches found
No related tags found
1 merge request!148Readme files to condenser_api calls
Showing
with 14325 additions and 11 deletions
---
test_name: Hivemind condenser_api.get_followers no followers patterns test
marks:
- patterntest
includes:
- !include ../../../common.yaml
stages:
- name: get_followers no followers
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_followers"
params: ["test2",null,"ignore",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_ignores"
directory: "condenser_api_patterns/get_followers/ignore"
\ No newline at end of file
[
{
"follower": "masoud",
"following": "cheetah",
"what": [
"ignore"
]
},
{
"follower": "zebbra2014",
"following": "cheetah",
"what": [
"ignore"
]
},
{
"follower": "mudassar",
"following": "cheetah",
"what": [
"ignore"
]
}
]
[
{
"follower": "zebbra2014",
"following": "cheetah",
"what": [
"ignore"
]
},
{
"follower": "mudassar",
"following": "cheetah",
"what": [
"ignore"
]
},
{
"follower": "ktbaeohana",
"following": "cheetah",
"what": [
"ignore"
]
}
]
---
test_name: Hivemind condenser_api.get_followers patterns test
marks:
- patterntest # original always included page defining account in results (and order of follows created in the same time was basically random), that was corrected
includes:
- !include ../../../common.yaml
stages:
- name: get_followers
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_followers"
params: {"account":"cheetah","follow_type":"ignore","start":"masoud","limit":3}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "paginated"
directory: "condenser_api_patterns/get_followers/ignore"
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- patterntest - patterntest
includes: includes:
- !include ../../common.yaml - !include ../../../common.yaml
stages: stages:
- name: get_followers ignore type - name: get_followers ignore type
...@@ -24,5 +24,5 @@ ...@@ -24,5 +24,5 @@
verify_response_with: verify_response_with:
function: validate_response:compare_response_with_pattern function: validate_response:compare_response_with_pattern
extra_kwargs: extra_kwargs:
method: "ignore" method: "steemit"
directory: "condenser_api_patterns/get_followers" directory: "condenser_api_patterns/get_followers/ignore"
\ No newline at end of file \ No newline at end of file
See ../_readme.txt for details
Gives accounts followed by given account.
"follow_type":"blog" (default)
This diff is collapsed.
This diff is collapsed.
[]
[]
\ 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