Skip to content
Snippets Groups Projects
Commit 16f21e02 authored by Paulina Czempiel's avatar Paulina Czempiel
Browse files

condenser_api get_comment_discussions_by_payout tests moved to folder

parent 603a9aa3
No related branches found
No related tags found
1 merge request!85condenser_api get_comment_discussions_by_payout tests moved to folder
Showing
with 7026 additions and 0 deletions
{
"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 condenser_api.get_comment_discussions_by_payout over limit test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout over limit
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_comment_discussions_by_payout"
params: {"tag":"tag","limit":101}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "over_limit"
directory: "condenser_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout limit 100 test
marks:
- patterntest # differences in pending payout make it incomparable with original
- negative # pattern needs to be ordered first but there are bigger differences
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout limit 100
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_comment_discussions_by_payout"
params: {"tag":"test","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "limit_100"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ No newline at end of file
[]
\ No newline at end of file
[]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout no results test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout no results
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_comment_discussions_by_payout"
params: {"tag":"non_existing_tag","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_results"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ No newline at end of file
[
{
"active_votes": [],
"author": "lukmarcus",
"author_reputation": 0,
"beneficiaries": [],
"body": "Ty jeste\u015b autorem tego tekstu?\nhttps://web.facebook.com/notes/szymon-szewczyk-blog/nasienie-wolno%C5%9Bci/1062629210473658",
"body_length": 122,
"cashout_time": "2016-09-18T21:19:45",
"category": "polska",
"children": 0,
"created": "2016-08-22T07:44:48",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"polska\"],\"links\":[\"https:\\/\\/web.facebook.com\\/notes\\/szymon-szewczyk-blog\\/nasienie-wolno%C5%9Bci\\/1062629210473658\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-08-22T07:44:48",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"parent_author": "simgregg",
"parent_permlink": "nasienie-wolnosci",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "re-simgregg-nasienie-wolnosci-20160822t074530822z",
"post_id": 703225,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Nasienie Wolno\u015bci",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/polska/@simgregg/nasienie-wolnosci#@lukmarcus/re-simgregg-nasienie-wolnosci-20160822t074530822z"
}
]
[
{
"active_votes": [],
"author": "lukmarcus",
"author_reputation": 0,
"beneficiaries": [],
"body": "Ty jeste\u015b autorem tego tekstu?\nhttps://web.facebook.com/notes/szymon-szewczyk-blog/nasienie-wolno%C5%9Bci/1062629210473658",
"body_length": 122,
"cashout_time": "2016-08-29T07:44:48",
"category": "polska",
"children": 0,
"created": "2016-08-22T07:44:48",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"polska\"],\"links\":[\"https://web.facebook.com/notes/szymon-szewczyk-blog/nasienie-wolno%C5%9Bci/1062629210473658\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-08-22T07:44:48",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"parent_author": "simgregg",
"parent_permlink": "nasienie-wolnosci",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-simgregg-nasienie-wolnosci-20160822t074530822z",
"post_id": 931240,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Nasienie Wolno\u015bci",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/polska/@simgregg/nasienie-wolnosci#@lukmarcus/re-simgregg-nasienie-wolnosci-20160822t074530822z"
}
]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout patterns test
marks:
- patterntest
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: "condenser_api.get_comment_discussions_by_payout"
params: {"tag":"polska","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "polska"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ 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