Commit b2423b52 authored by Paulina Czempiel's avatar Paulina Czempiel
Browse files

condenser_api get_following negative tests moved to folder

parent 43fe440f
{
"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
Supports Markdown
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