Skip to content
Snippets Groups Projects
Commit dd289f04 authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

Merge branch 'get_replies_by_last_update' of gitlab.syncad.com:hive/tests_api...

Merge branch 'get_replies_by_last_update' of gitlab.syncad.com:hive/tests_api into get_replies_by_last_update
parents d5ba0398 97196bc7
No related branches found
No related tags found
1 merge request!82condenser_api get_replies_by_last_update test moved to folder
Showing
with 3542 additions and 0 deletions
{
"code": -32602,
"data": "`start_author` cannot be blank",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "`start_author` cannot be blank",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_replies_by_last_update blank start author patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update blank start author
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_replies_by_last_update"
params: ["","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blank_start_author"
directory: "condenser_api_negative/get_replies_by_last_update"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "invalid account name length: `a`",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "invalid account name length: `a`",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_replies_by_last_update invalid account name length patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update invalid account name length
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_replies_by_last_update"
params: ["a","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "invalid_account_name"
directory: "condenser_api_negative/get_replies_by_last_update"
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 condenser_api.get_replies_by_last_update over limit patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",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_replies_by_last_update"
error_response: true
\ No newline at end of file
[
{
"active_votes": [
{
"percent": "-100",
"reputation": 0,
"rshares": "-375241",
"voter": "dantheman"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "5100",
"voter": "steemit46"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "81125",
"voter": "roadscape"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "425903066",
"voter": "gekko"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "431616594",
"voter": "acidyo"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "742566481",
"voter": "patrick-g"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "58854897335",
"voter": "business"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "108855472",
"voter": "kingtylervvs"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "244129227",
"voter": "kewpiedoll"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "1615731741",
"voter": "naturalista"
}
],
"author": "admin",
"author_reputation": 0,
"beneficiaries": [],
"body": "First Reply! Let's get this **party** started",
"body_length": 45,
"cashout_time": "1969-12-31T23:59:59",
"category": "meta",
"children": 2,
"created": "2016-03-30T19:52:30",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{}",
"last_payout": "2016-08-24T19:59:42",
"last_update": "2016-03-30T19:52:30",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 62423410900,
"parent_author": "steemit",
"parent_permlink": "firstpost",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "firstpost",
"post_id": 2,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Welcome to Steem!",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/meta/@steemit/firstpost#@admin/firstpost"
}
]
[
{
"active_votes": [
{
"percent": "-100",
"reputation": 0,
"rshares": "-375241",
"voter": "dantheman"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "5100",
"voter": "steemit46"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "81125",
"voter": "roadscape"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "425903066",
"voter": "gekko"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "431616594",
"voter": "acidyo"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "742566481",
"voter": "patrick-g"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "58854897335",
"voter": "business"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "108855472",
"voter": "kingtylervvs"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "244129227",
"voter": "kewpiedoll"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "1615731741",
"voter": "naturalista"
}
],
"author": "admin",
"author_reputation": 0,
"beneficiaries": [],
"body": "First Reply! Let's get this **party** started",
"body_length": 45,
"cashout_time": "1969-12-31T23:59:59",
"category": "meta",
"children": 2,
"created": "2016-03-30T19:52:30",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "",
"last_payout": "2016-08-24T19:59:42",
"last_update": "2016-03-30T19:52:30",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 62423410900,
"parent_author": "steemit",
"parent_permlink": "firstpost",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "firstpost",
"post_id": 2,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Welcome to Steem!",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/meta/@steemit/firstpost#@admin/firstpost"
}
]
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["admin","firstpost",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "admin"
directory: "condenser_api_patterns/get_replies_by_last_update"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update limit 100 patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["gtg","",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_replies_by_last_update"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update no results patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_results"
directory: "condenser_api_patterns/get_replies_by_last_update"
\ No newline at end of file
[]
\ No newline at end of file
[]
\ 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