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

Merge branch 'get_discussions_by_author_before_date_negative' of...

Merge branch 'get_discussions_by_author_before_date_negative' of gitlab.syncad.com:hive/tests_api into get_discussions_by_author_before_date_negative
parents 603a9aa3 959b485e
{
"code": -32602,
"data": "`author` cannot be blank",
"message": "Invalid parameters"
}
\ No newline at end of file
---
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"
}
\ No newline at end of file
---
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