Skip to content
Snippets Groups Projects
Commit fd065257 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Test for pre24 list_votes

parent 43468b17
No related tags found
1 merge request!108Test for pre24 list_votes
Showing
with 427 additions and 0 deletions
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "roelandp",
"p": ""
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment roelandp/."
}
{
"code": -32602,
"data": "Post roelandp/ does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test order "by_comment_voter" comment not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test order "by_comment_voter" comment not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["roelandp", "", ""],
"limit": 10,
"order": "by_comment_voter",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_comment_voter_author"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "",
"p": "re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z"
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment /re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z."
}
{
"code": -32602,
"data": "Post /re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test "by_comment_voter" permlink not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test "by_comment_voter" permlink not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["", "re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z", ""],
"limit": 10,
"order": "by_comment_voter",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_comment_voter_permlink"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "steemit",
"p": "re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z"
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment steemit/re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z."
}
{
"code": -32602,
"data": "Post steemit/re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test "by_comment_voter" comment not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test "by_comment_voter" comment not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["steemit", "re-roelandp-tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours-20160825t212252221z", ""],
"limit": 10,
"order": "by_comment_voter",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_comment_voter_wrong_post"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "roelandp",
"p": ""
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment roelandp/."
}
{
"code": -32602,
"data": "Post roelandp/ does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test order "by_voter_comment" comment not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test order "by_voter_comment" comment not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["", "roelandp", ""],
"limit": 10,
"order": "by_voter_comment",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_voter_comment_author"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "",
"p": "tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours"
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment /tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours."
}
{
"code": -32602,
"data": "Post /tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test order "by_voter_Comment" comment not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test order "by_voter_comment" comment not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["", "", "tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours"],
"limit": 10,
"order": "by_voter_comment",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_voter_comment_permlink"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "database_api.cpp",
"hostname": "",
"level": "error",
"line": 1215,
"method": "votes_impl",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"a": "roelandp",
"p": "tldr-an-exploration-in-st"
},
"format": "comment != nullptr: Could not find comment ${a}/${p}."
}
]
},
"message": "Assert Exception:comment != nullptr: Could not find comment roelandp/tldr-an-exploration-in-st."
}
{
"code": -32602,
"data": "Post roelandp/tldr-an-exploration-in-st does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind database_api.list_votes patterns test order "by_voter_comment" comment not found
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: database_api.list_votes patterns test order "by_voter_comment" comment not found
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "database_api.list_votes_pre24"
params:
{
"start": ["", "roelandp", "tldr-an-exploration-in-st"],
"limit": 10,
"order": "by_voter_comment",
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "by_voter_comment_wrong_post"
directory: "database_api_negative/list_votes_pre24"
error_response: true
{
"code": -32000,
"data": {
"code": 7,
"message": "Bad Cast",
"name": "bad_cast_exception",
"stack": [
{
"context": {
"file": "exception.cpp",
"hostname": "",
"level": "error",
"line": 226,
"method": "throw_bad_enum_cast",
"timestamp": "2020-09-10T17:35:29"
},
"data": {
"enum": "steem::plugins::database_api::sort_order_type",
"key": "by_author"
},
"format": "invalid name '${key}' in enum '${enum}'"
}
]
},
"message": "Bad Cast:invalid name 'by_author' in enum 'steem::plugins::database_api::sort_order_type'"
}
{
"code": -32602,
"data": "Order by_author is not supported",
"message": "Invalid parameters"
}
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