Commit 5ae42c5b authored by Andrzej Lisak's avatar Andrzej Lisak

[ABW]: removed duplicate tests that were moved to separate folder

parent dd289f04
[
{
"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
{
"code": -32602,
"data": "`start_author` cannot be blank",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "`start_author` cannot be blank",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "invalid account name length: `a`",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "invalid account name length: `a`",
"message": "Invalid parameters"
}
{
"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 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: "get_replies_by_last_update"
directory: "condenser_api_patterns"
---
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: "get_replies_by_last_update_limit_100"
directory: "condenser_api_patterns"
---
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: "get_replies_by_last_update_no_results"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_replies_by_last_update over limit patterns test
marks:
- patterntest
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: "get_replies_by_last_update_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_replies_by_last_update blank start author patterns test
marks:
- patterntest
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: "get_replies_by_last_update_blank_start_author"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_replies_by_last_update invalid account name length patterns test
marks:
- patterntest
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: "get_replies_by_last_update_invalid_account_name"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test
......
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