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

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

parents e174ccf4 b2423b52
No related branches found
No related tags found
1 merge request!67condenser_api get_following moved to folder
Showing
with 374 additions and 0 deletions
{
"code": -32602,
"data": "limit exceeds max (1001 > 1000)",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "limit exceeds max (1001 > 1000)",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_following over limit test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_following last
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_following"
params: ["gtg","blocktrades","blog",1001]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "over_limit"
directory: "condenser_api_negative/get_following"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid follow_type `wrong_type`",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "invalid follow_type `wrong_type`",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_following wrong_type patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_following wrong_type
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_following"
params: ["brightnesssoulds",null,"wrong_type",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "wrong_type"
directory: "condenser_api_negative/get_following"
error_response: true
\ No newline at end of file
[
{
"follower": "proskynneo",
"following": "webosfritos",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "peerplays",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "charlieshrem",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "tlc",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "jamesc",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "theoretical",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "steemitblog",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "ned",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "dan",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "katecloud",
"what": [
"blog"
]
}
]
\ No newline at end of file
[
{
"follower": "proskynneo",
"following": "webosfritos",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "peerplays",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "charlieshrem",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "tlc",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "jamesc",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "theoretical",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "steemitblog",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "ned",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "dan",
"what": [
"blog"
]
},
{
"follower": "proskynneo",
"following": "katecloud",
"what": [
"blog"
]
}
]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_following patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_following
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_following"
params: ["proskynneo",null,"blog",10]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blog"
directory: "condenser_api_patterns/get_following"
\ No newline at end of file
[
{
"follower": "brightnesssoulds",
"following": "steemit",
"what": [
"ignore"
]
}
]
[
{
"follower": "brightnesssoulds",
"following": "steemit",
"what": [
"ignore"
]
}
]
---
test_name: Hivemind condenser_api.get_following ignore_type patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_following ignore_type
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_following"
params: ["brightnesssoulds",null,"ignore",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "ignore_type"
directory: "condenser_api_patterns/get_following"
\ No newline at end of file
[
{
"follower": "gtg",
"following": "blocktrades",
"what": [
"blog"
]
}
]
\ No newline at end of file
[
{
"follower": "gtg",
"following": "blocktrades",
"what": [
"blog"
]
}
]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_following last patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_following last
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_following"
params: ["gtg","blocktrades","blog",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "last"
directory: "condenser_api_patterns/get_following"
\ No newline at end of file
[]
\ No newline at end of file
[]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_following no following patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_following no following
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_following"
params: ["test2",null,"blog",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_following"
directory: "condenser_api_patterns/get_following"
\ 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