Commit 3766670e authored by Andrzej Lisak's avatar Andrzej Lisak

[ABW]: removed duplicate test that was moved to separate folder

added .orig files to new tests
accepted typical differences in new patterns: rshares/weight expressed as numbers instead of strings
parent fc56d9fa
{
"code": -32000,
"data": {
"code": 13,
"message": "unknown key",
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment",
"timestamp": "2020-09-14T18:32:20"
},
"data": {
"author": "noodhoog",
"permlink": "",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
}
{ {
"code": -32000, "code": -32602,
"data": { "data": "permlink cannot be blank",
"code": 13, "message": "Invalid parameters"
"message": "unknown key", }
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment"
},
"data": {
"author": "noodhoog",
"permlink": "",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
}
\ No newline at end of file
...@@ -28,4 +28,3 @@ ...@@ -28,4 +28,3 @@
method: "author" method: "author"
directory: "condenser_api_negative/get_active_votes" directory: "condenser_api_negative/get_active_votes"
error_response: true error_response: true
ignore_tags: ["timestamp"]
\ No newline at end of file
{
"code": -32000,
"data": {
"code": 13,
"message": "unknown key",
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment",
"timestamp": "2020-09-14T18:32:20"
},
"data": {
"author": "",
"permlink": "",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
}
{ {
"code": -32000, "code": -32602,
"data": { "data": "invalid account (not specified)",
"code": 13, "message": "Invalid parameters"
"message": "unknown key",
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment",
"timestamp": "2020-09-14T09:36:25"
},
"data": {
"author": "",
"permlink": "",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
} }
...@@ -28,4 +28,3 @@ ...@@ -28,4 +28,3 @@
method: "no_data" method: "no_data"
directory: "condenser_api_negative/get_active_votes" directory: "condenser_api_negative/get_active_votes"
error_response: true error_response: true
ignore_tags: ["timestamp"]
\ No newline at end of file
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "condenser_api.cpp",
"hostname": "",
"level": "error",
"line": 1266,
"method": "get_active_votes",
"timestamp": "2020-09-14T18:32:20"
},
"data": {
"n": 3
},
"format": "args.size() == 2: Expected #s argument(s), was ${n}"
}
]
},
"message": "Assert Exception:args.size() == 2: Expected #s argument(s), was 3"
}
{ {
"code": -32003, "code": -32602,
"data": { "data": "too many positional arguments",
"code": 10, "message": "Invalid parameters"
"message": "Assert Exception", }
"name": "assert_exception",
"stack": [
{
"context": {
"file": "condenser_api.cpp",
"hostname": "",
"level": "error",
"line": 1266,
"method": "get_active_votes"
},
"data": {
"n": 3
},
"format": "args.size() == 2: Expected #s argument(s), was ${n}"
}
]
},
"message": "Assert Exception:args.size() == 2: Expected #s argument(s), was 3"
}
\ No newline at end of file
...@@ -28,4 +28,3 @@ ...@@ -28,4 +28,3 @@
method: "three_args" method: "three_args"
directory: "condenser_api_negative/get_active_votes" directory: "condenser_api_negative/get_active_votes"
error_response: true error_response: true
ignore_tags: ["timestamp"]
\ No newline at end of file
{
"code": -32000,
"data": {
"code": 13,
"message": "unknown key",
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment",
"timestamp": "2020-09-14T18:32:20"
},
"data": {
"author": "ciao",
"permlink": "re-the-amazing-mr-hydde-20160811t213717",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
}
{ {
"code": -32000, "code": -32602,
"data": { "data": "Post ciao/re-the-amazing-mr-hydde-20160811t213717 does not exist",
"code": 13, "message": "Invalid parameters"
"message": "unknown key",
"name": "N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE",
"stack": [
{
"context": {
"file": "database.cpp",
"hostname": "",
"level": "warn",
"line": 606,
"method": "get_comment"
},
"data": {
"author": "ciao",
"permlink": "re-the-amazing-mr-hydde-20160811t213717",
"what": "unknown key"
},
"format": "${what}: "
}
]
},
"message": "unknown key:unknown key: "
} }
...@@ -28,4 +28,3 @@ ...@@ -28,4 +28,3 @@
method: "wrong_author" method: "wrong_author"
directory: "condenser_api_negative/get_active_votes" directory: "condenser_api_negative/get_active_votes"
error_response: true error_response: true
ignore_tags: ["timestamp"]
\ No newline at end of file
[
{
"percent": 10000,
"reputation": 0,
"rshares": 0,
"time": "2016-08-20T02:59:39",
"voter": "endgame",
"weight": 0
},
{
"percent": 10000,
"reputation": 0,
"rshares": "28030089381",
"time": "2016-07-19T20:00:30",
"voter": "biophil",
"weight": 0
},
{
"percent": 10000,
"reputation": 0,
"rshares": 52512184,
"time": "2016-07-19T20:01:15",
"voter": "seagul",
"weight": "5970197932869"
}
]
\ No newline at end of file
[
{
"percent": 10000,
"reputation": 0,
"rshares": 0,
"time": "2016-08-20T02:59:39",
"voter": "endgame",
"weight": 0
},
{
"percent": 10000,
"reputation": 0,
"rshares": 28030089381,
"time": "2016-07-19T20:00:30",
"voter": "biophil",
"weight": 0
},
{
"percent": 10000,
"reputation": 0,
"rshares": 52512184,
"time": "2016-07-19T20:01:15",
"voter": "seagul",
"weight": 5970197932869
}
]
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
{ {
"percent": 10000, "percent": 10000,
"reputation": 0, "reputation": 0,
"rshares": "28030089381", "rshares": 28030089381,
"time": "2016-07-19T20:00:30", "time": "2016-07-19T20:00:30",
"voter": "biophil", "voter": "biophil",
"weight": 0 "weight": 0
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
"rshares": 52512184, "rshares": 52512184,
"time": "2016-07-19T20:01:15", "time": "2016-07-19T20:01:15",
"voter": "seagul", "voter": "seagul",
"weight": "5970197932869" "weight": 5970197932869
} }
] ]
\ No newline at end of file
...@@ -27,35 +27,6 @@ ...@@ -27,35 +27,6 @@
method: "get_blog_entries" method: "get_blog_entries"
directory: "condenser_api_patterns" directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_active_votes patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_active_votes
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_active_votes"
params: ["biophil","test"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_active_votes"
directory: "condenser_api_patterns"
--- ---
test_name: Hivemind deprecated condenser_api.get_account_votes test_name: Hivemind deprecated condenser_api.get_account_votes
......
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