Commit 3b34f39c authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

Merge branch 'get_comment_discussions_by_payout_negative' of...

Merge branch 'get_comment_discussions_by_payout_negative' of gitlab.syncad.com:hive/tests_api into get_comment_discussions_by_payout_negative
parents 5fb18c30 622f164e
{
"code": -32000,
"data": "ValueError: invalid literal for int() with base 10: ''",
"message": "Server error"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test no data error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: ["", "", ""]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "empty_params"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
{
"code": -32602,
"message": "Invalid parameters",
"data": "limit must be positive"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test limit error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: ["", "", "0", "photography", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "limit"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
{
"code": -32602,
"data": "permlink must be string",
"message": "Invalid parameters"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test permlink type error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: ["", 8, "5", "pictures", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "permlink_type"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid account name length: `1`",
"message": "Invalid parameters"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test too short name error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: ["1", "re-budgiebee-re-mikkolyytinen-re-budgiebee-hey-can-somebody-please-tell-me-how-to-add-pictures-to-blogs-20160911t191955857z", "5", "pictures", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "short_name"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid account name type",
"message": "Invalid parameters"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test account type error
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: [2, "re-budgiebee-re-mikkolyytinen-re-budgiebee-hey-can-somebody-please-tell-me-how-to-add-pictures-to-blogs-20160911t191955857z", "5", "pictures", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "type"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid tag `ab dd`",
"message": "Invalid parameters"
}
\ No newline at end of file
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test limit wrong category (space)
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: ["", "", "10", "ab dd", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "wrong_category"
directory: "tags_api_negative/get_comment_discussions_by_payout"
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