Commit db4103fb authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'get_discussions_by_author_before_date_negative' into 'master'

tags_api negative get_discussion_by_author_before_date moved to folder

See merge request !61
parents 603a9aa3 15845fac
{
"code": -32602,
"data": "`author` cannot be blank",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "`author` cannot be blank",
"message": "Invalid parameters"
}
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test empty params error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_author_before_date
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "tags_api.get_discussions_by_author_before_date"
params: [] # context, author: str = None, start_permlink: str = '', before_date: str = '', limit: int = 10
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "empty_params"
directory: "tags_api_negative/get_discussions_by_author_before_date"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "limit exceeds max (101 > 100)",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "limit exceeds max (101 > 100)",
"message": "Invalid parameters"
}
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test too big limit error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_author_before_date
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "tags_api.get_discussions_by_author_before_date"
params: ["dragonho", "", "", 101]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "limit"
directory: "tags_api_negative/get_discussions_by_author_before_date"
error_response: true
\ 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