Commit ca75d762 authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

Merge branch 'get_follow_count' of gitlab.syncad.com:hive/tests_api into get_follow_count

parents f5d71d16 6703102c
{
"account": "gtg",
"following_count": 31,
"follower_count": 80
}
\ No newline at end of file
{
"account": "gtg",
"following_count": 31,
"follower_count": 80
}
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_follow_count following and followers patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_follow_count following and 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_follow_count"
params: ["gtg"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "condenser_api_patterns/get_follow_count"
\ No newline at end of file
{
"account": "test2",
"follower_count": 0,
"following_count": 0
}
\ No newline at end of file
{
"account": "test2",
"follower_count": 0,
"following_count": 0
}
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_follow_count_no_followers patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_follow_count
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_follow_count"
params: ["test2"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_followers"
directory: "condenser_api_patterns/get_follow_count"
\ No newline at end of file
{
"account": "steemit",
"follower_count": 175,
"following_count": 0
}
\ No newline at end of file
{
"account": "steemit",
"follower_count": 175,
"following_count": 0
}
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_follow_count patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_follow_count
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_follow_count"
params: ["steemit"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "condenser_api_patterns/get_follow_count"
\ No newline at end of file
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