diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.orig.json b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..26fdde3656d4667e1f596917962f3827ef4b2f38 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "invalid account char", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.pat.json b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..26fdde3656d4667e1f596917962f3827ef4b2f38 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "invalid account char", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..35af9d82bb2f4fbe0ac1466f6cf1d856d28dc6ad --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_account.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog invalid account test + + marks: + - patterntest + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog invalid account + 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_blog" + params: {"account":"invalid_account","start_entry_id":0,"limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "invalid_account" + directory: "condenser_api_negative/get_blog" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.orig.json b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..a88114e6ca519c0e1e6ac4e6a016664b448caefe --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "start_index and limit combination is invalid (11, 20)", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.pat.json b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..a88114e6ca519c0e1e6ac4e6a016664b448caefe --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "start_index and limit combination is invalid (11, 20)", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c07d124a66d5b95bb16ad1d8453cb7042f1330e --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/invalid_limit_combo.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog invalid limit combination patterns test + + marks: + - patterntest # call returns post entries starting at start_entry_id going down towards 0 until limit, therefore limit <= start_entry_id + 1 (unless start_entry_id is 0 or -1) + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog invalid limit combination + 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_blog" + params: {"account":"gtg","start_entry_id":11,"limit":20} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "invalid_limit_combo" + directory: "condenser_api_negative/get_blog" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_negative/get_blog/non_existing.orig.json b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..fa835a58c382eadd7a287a91c20d1256de4bbb15 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "account not found: `non.existing`", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/non_existing.pat.json b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..fa835a58c382eadd7a287a91c20d1256de4bbb15 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "account not found: `non.existing`", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/non_existing.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16a9987d3abf3f29f0666ab28b878501239ad3bb --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/non_existing.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog non existing account test + + marks: + - patterntest # wrong response, should be clean error (now there is no way to make difference between nonexisting account and account that does not blog) + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog non existing account + 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_blog" + params: {"account":"non.existing","start_entry_id":0,"limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "non_existing" + directory: "condenser_api_negative/get_blog" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_negative/get_blog/over_limit.orig.json b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..eefb0b1ff4e2322f132b404bc0a779ba37b479de --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "limit exceeds max (501 > 500)", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/over_limit.pat.json b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..eefb0b1ff4e2322f132b404bc0a779ba37b479de --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "limit exceeds max (501 > 500)", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/over_limit.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0541d22c83b17231001c8a4d85818d422757f95f --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/over_limit.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog over limit test + + marks: + - patterntest + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog 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_blog" + params: {"account":"steemit","start_entry_id":0,"limit":501} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "over_limit" + directory: "condenser_api_negative/get_blog" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_negative/get_blog/too_long.orig.json b/hivemind/tavern/condenser_api_negative/get_blog/too_long.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..7ab16f7f79e0ba9ba1a9dd7e64ea69be02007e60 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/too_long.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "invalid account name length: `too.long.account.name`", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/too_long.pat.json b/hivemind/tavern/condenser_api_negative/get_blog/too_long.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..7ab16f7f79e0ba9ba1a9dd7e64ea69be02007e60 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/too_long.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "invalid account name length: `too.long.account.name`", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_blog/too_long.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_blog/too_long.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ca1006d38872eab8cc580d182cbac12b10402a7 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_blog/too_long.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog too long account name test + + marks: + - patterntest + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog too long account name + 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_blog" + params: {"account":"too.long.account.name","start_entry_id":0,"limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "too_long" + directory: "condenser_api_negative/get_blog" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.orig.json b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..e4345dc32bc61879de7f7ea1375bfe6065d6dad6 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.orig.json @@ -0,0 +1,645 @@ +[ + { + "blog": "steemit", + "comment": { + "active_votes": [ + { + "percent": "100", + "reputation": 0, + "rshares": "375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "886132", + "voter": "mr11acdee" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit78" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1259167", + "voter": "anonymous" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "318519", + "voter": "hello" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "153384", + "voter": "world" + }, + { + "percent": "-100", + "reputation": 0, + "rshares": "-936400", + "voter": "ned" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59412", + "voter": "fufubar1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14997", + "voter": "anonymous1" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "1441", + "voter": "red" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "551390835500", + "voter": "liondani" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "82748", + "voter": "roadscape" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "10772", + "voter": "xeroc" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7685088000", + "voter": "markopaasila" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "454510724", + "voter": "tshering-tamang" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "681946946", + "voter": "romangelsi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "504895891", + "voter": "dedmatvey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "498863058", + "voter": "joelinux" + }, + { + "percent": "0", + "reputation": 0, + "rshares": "9590417", + "voter": "piranhax" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "473258270", + "voter": "ned-reddit-login" + }, + { + "percent": "3600", + "reputation": 0, + "rshares": "0", + "voter": "fernando-sanz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "381805870", + "voter": "gilang-ramadhan" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "392459059", + "voter": "kamvreto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "422984262", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47179379651", + "voter": "tosch" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7831667988", + "voter": "klye" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1019950749", + "voter": "coar" + }, + { + "percent": "1509", + "reputation": 0, + "rshares": "1746058458", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "22639073725", + "voter": "drinkzya" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "hien-tran" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "40624969", + "voter": "ben99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1742755097", + "voter": "sunshinecrypto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "485112237", + "voter": "marinabogumil" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "917398502", + "voter": "decrypt" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5067187498", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5154897955", + "voter": "r33drum" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5033902237", + "voter": "cryptosi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1037079223", + "voter": "condra" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "233032838", + "voter": "jearson" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "240809500", + "voter": "tritium" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "123321995", + "voter": "allmonitors" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226074637", + "voter": "artjedi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "931542394", + "voter": "anduweb" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2292983350", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "128561059", + "voter": "maximkichev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "183438273", + "voter": "a9inchcock" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "266262926", + "voter": "desmonid" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71498008", + "voter": "madhatting" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23726644841", + "voter": "ubg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3741408303", + "voter": "royaltiffany" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "131577259", + "voter": "gribgo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12371398765", + "voter": "deanliu" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "28907874049", + "voter": "orm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "528988007", + "voter": "qonq99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "129537329", + "voter": "rd7783" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "615020728", + "voter": "slava" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "flyboyzombie" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "100102503", + "voter": "sictransitgloria" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "95219365", + "voter": "curator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "232295871", + "voter": "dubovoy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "solos" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "96945805", + "voter": "creatorgalaxy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "99813231", + "voter": "trigonice29" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "blysards" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3721016208", + "voter": "uwe69" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1279854", + "voter": "nigmat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "13974353753", + "voter": "magicmonk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4968585456", + "voter": "satoshifpv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1660613178", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "10847083143", + "voter": "metrox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "18340928", + "voter": "bestmalik" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59563315", + "voter": "kolyan31" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "710989138", + "voter": "romancs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59366614", + "voter": "luke490" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58762473", + "voter": "bro66" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "201822591", + "voter": "future24" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58623688", + "voter": "mythras" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56536509", + "voter": "imarealboy777" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "matrixdweller" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48299362", + "voter": "smartguylabcoat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59157099", + "voter": "mabiturm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48283979", + "voter": "captainamerica" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54761612", + "voter": "edbriv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "865125771", + "voter": "rittr" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "92614447", + "voter": "jelloducky" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52740989", + "voter": "tcstix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "49467477", + "voter": "friedwater" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57366185", + "voter": "denisdiaz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "132070449", + "voter": "loganarchy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48811442", + "voter": "love-spirit-nerd" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "51549585", + "voter": "dikanevn" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54017869", + "voter": "zelious" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "50129944", + "voter": "freebornangel" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "53196086", + "voter": "f1111111" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "anomaly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52394017140", + "voter": "jack8831" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "buckland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "goldmatters" + } + ], + "author": "steemit", + "author_reputation": 0, + "beneficiaries": [], + "body": "Steemit is a social media platform where anyone can earn STEEM points by posting. The more people who like a post, the more STEEM the poster earns. Anyone can sell their STEEM for cash or vest it to boost their voting power.", + "body_length": 224, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 36, + "created": "2016-03-30T18:30:18", + "curator_payout_value": "0.756 HBD", + "depth": 0, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T18:30:18", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 830053779138, + "parent_author": "", + "parent_permlink": "meta", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "firstpost", + "post_id": 1, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "Welcome to Steem!", + "total_payout_value": "0.942 HBD", + "url": "/meta/@steemit/firstpost" + }, + "entry_id": 0, + "reblogged_on": "1970-01-01T00:00:00" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.pat.json b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..9b916552fac57de583a0c41b2b468b56ccde9e6b --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.pat.json @@ -0,0 +1,645 @@ +[ + { + "blog": "steemit", + "comment": { + "active_votes": [ + { + "percent": "100", + "reputation": 0, + "rshares": "375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "886132", + "voter": "mr11acdee" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit78" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1259167", + "voter": "anonymous" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "318519", + "voter": "hello" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "153384", + "voter": "world" + }, + { + "percent": "-100", + "reputation": 0, + "rshares": "-936400", + "voter": "ned" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59412", + "voter": "fufubar1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14997", + "voter": "anonymous1" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "1441", + "voter": "red" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "551390835500", + "voter": "liondani" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "82748", + "voter": "roadscape" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "10772", + "voter": "xeroc" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7685088000", + "voter": "markopaasila" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "454510724", + "voter": "tshering-tamang" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "681946946", + "voter": "romangelsi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "504895891", + "voter": "dedmatvey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "498863058", + "voter": "joelinux" + }, + { + "percent": "0", + "reputation": 0, + "rshares": "9590417", + "voter": "piranhax" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "473258270", + "voter": "ned-reddit-login" + }, + { + "percent": "3600", + "reputation": 0, + "rshares": "0", + "voter": "fernando-sanz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "381805870", + "voter": "gilang-ramadhan" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "392459059", + "voter": "kamvreto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "422984262", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47179379651", + "voter": "tosch" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7831667988", + "voter": "klye" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1019950749", + "voter": "coar" + }, + { + "percent": "1509", + "reputation": 0, + "rshares": "1746058458", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "22639073725", + "voter": "drinkzya" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "hien-tran" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "40624969", + "voter": "ben99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1742755097", + "voter": "sunshinecrypto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "485112237", + "voter": "marinabogumil" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "917398502", + "voter": "decrypt" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5067187498", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5154897955", + "voter": "r33drum" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5033902237", + "voter": "cryptosi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1037079223", + "voter": "condra" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "233032838", + "voter": "jearson" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "240809500", + "voter": "tritium" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "123321995", + "voter": "allmonitors" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226074637", + "voter": "artjedi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "931542394", + "voter": "anduweb" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2292983350", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "128561059", + "voter": "maximkichev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "183438273", + "voter": "a9inchcock" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "266262926", + "voter": "desmonid" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71498008", + "voter": "madhatting" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23726644841", + "voter": "ubg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3741408303", + "voter": "royaltiffany" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "131577259", + "voter": "gribgo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12371398765", + "voter": "deanliu" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "28907874049", + "voter": "orm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "528988007", + "voter": "qonq99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "129537329", + "voter": "rd7783" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "615020728", + "voter": "slava" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "flyboyzombie" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "100102503", + "voter": "sictransitgloria" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "95219365", + "voter": "curator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "232295871", + "voter": "dubovoy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "solos" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "96945805", + "voter": "creatorgalaxy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "99813231", + "voter": "trigonice29" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "blysards" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3721016208", + "voter": "uwe69" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1279854", + "voter": "nigmat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "13974353753", + "voter": "magicmonk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4968585456", + "voter": "satoshifpv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1660613178", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "10847083143", + "voter": "metrox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "18340928", + "voter": "bestmalik" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59563315", + "voter": "kolyan31" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "710989138", + "voter": "romancs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59366614", + "voter": "luke490" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58762473", + "voter": "bro66" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "201822591", + "voter": "future24" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58623688", + "voter": "mythras" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56536509", + "voter": "imarealboy777" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "matrixdweller" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48299362", + "voter": "smartguylabcoat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59157099", + "voter": "mabiturm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48283979", + "voter": "captainamerica" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54761612", + "voter": "edbriv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "865125771", + "voter": "rittr" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "92614447", + "voter": "jelloducky" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52740989", + "voter": "tcstix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "49467477", + "voter": "friedwater" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57366185", + "voter": "denisdiaz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "132070449", + "voter": "loganarchy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48811442", + "voter": "love-spirit-nerd" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "51549585", + "voter": "dikanevn" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54017869", + "voter": "zelious" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "50129944", + "voter": "freebornangel" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "53196086", + "voter": "f1111111" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "anomaly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52394017140", + "voter": "jack8831" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "buckland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "goldmatters" + } + ], + "author": "steemit", + "author_reputation": 0, + "beneficiaries": [], + "body": "Steemit is a social media platform where anyone can earn STEEM points by posting. The more people who like a post, the more STEEM the poster earns. Anyone can sell their STEEM for cash or vest it to boost their voting power.", + "body_length": 224, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 36, + "created": "2016-03-30T18:30:18", + "curator_payout_value": "0.756 HBD", + "depth": 0, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T18:30:18", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 830053779138, + "parent_author": "", + "parent_permlink": "meta", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "firstpost", + "post_id": 1, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "Welcome to Steem!", + "total_payout_value": "0.942 HBD", + "url": "/meta/@steemit/firstpost" + }, + "entry_id": 0, + "reblogged_on": "1970-01-01T00:00:00" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7eb548565d98e99fb83e675bd610ed62d6c7cfb0 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/limit_hundred.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_blog limit 100 patterns test + + marks: + - patterntest # original had trouble with the call, when limit exceeded number of post entries error was returned + # see https://gitlab.syncad.com/hive/hivemind/-/issues/53 - pattern/original prepared with limit 1 + - failing + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog 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_blog" + params: {"account":"steemit","start_entry_id":0,"limit":100} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "limit_hundred" + directory: "condenser_api_patterns/get_blog" \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/no_results.orig.json b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.orig.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/no_results.pat.json b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.pat.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/no_results.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a54dfd3c3f01b5534868ebce8209e0a272917021 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/no_results.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_blog no results test + + marks: + - patterntest + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog 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_blog" + params: {"account":"user","start_entry_id":0,"limit":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_blog" \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/normal.orig.json b/hivemind/tavern/condenser_api_patterns/get_blog/normal.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..e4345dc32bc61879de7f7ea1375bfe6065d6dad6 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/normal.orig.json @@ -0,0 +1,645 @@ +[ + { + "blog": "steemit", + "comment": { + "active_votes": [ + { + "percent": "100", + "reputation": 0, + "rshares": "375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "886132", + "voter": "mr11acdee" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit78" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1259167", + "voter": "anonymous" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "318519", + "voter": "hello" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "153384", + "voter": "world" + }, + { + "percent": "-100", + "reputation": 0, + "rshares": "-936400", + "voter": "ned" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59412", + "voter": "fufubar1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14997", + "voter": "anonymous1" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "1441", + "voter": "red" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "551390835500", + "voter": "liondani" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "82748", + "voter": "roadscape" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "10772", + "voter": "xeroc" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7685088000", + "voter": "markopaasila" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "454510724", + "voter": "tshering-tamang" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "681946946", + "voter": "romangelsi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "504895891", + "voter": "dedmatvey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "498863058", + "voter": "joelinux" + }, + { + "percent": "0", + "reputation": 0, + "rshares": "9590417", + "voter": "piranhax" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "473258270", + "voter": "ned-reddit-login" + }, + { + "percent": "3600", + "reputation": 0, + "rshares": "0", + "voter": "fernando-sanz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "381805870", + "voter": "gilang-ramadhan" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "392459059", + "voter": "kamvreto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "422984262", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47179379651", + "voter": "tosch" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7831667988", + "voter": "klye" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1019950749", + "voter": "coar" + }, + { + "percent": "1509", + "reputation": 0, + "rshares": "1746058458", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "22639073725", + "voter": "drinkzya" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "hien-tran" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "40624969", + "voter": "ben99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1742755097", + "voter": "sunshinecrypto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "485112237", + "voter": "marinabogumil" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "917398502", + "voter": "decrypt" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5067187498", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5154897955", + "voter": "r33drum" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5033902237", + "voter": "cryptosi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1037079223", + "voter": "condra" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "233032838", + "voter": "jearson" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "240809500", + "voter": "tritium" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "123321995", + "voter": "allmonitors" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226074637", + "voter": "artjedi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "931542394", + "voter": "anduweb" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2292983350", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "128561059", + "voter": "maximkichev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "183438273", + "voter": "a9inchcock" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "266262926", + "voter": "desmonid" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71498008", + "voter": "madhatting" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23726644841", + "voter": "ubg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3741408303", + "voter": "royaltiffany" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "131577259", + "voter": "gribgo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12371398765", + "voter": "deanliu" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "28907874049", + "voter": "orm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "528988007", + "voter": "qonq99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "129537329", + "voter": "rd7783" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "615020728", + "voter": "slava" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "flyboyzombie" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "100102503", + "voter": "sictransitgloria" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "95219365", + "voter": "curator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "232295871", + "voter": "dubovoy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "solos" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "96945805", + "voter": "creatorgalaxy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "99813231", + "voter": "trigonice29" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "blysards" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3721016208", + "voter": "uwe69" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1279854", + "voter": "nigmat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "13974353753", + "voter": "magicmonk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4968585456", + "voter": "satoshifpv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1660613178", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "10847083143", + "voter": "metrox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "18340928", + "voter": "bestmalik" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59563315", + "voter": "kolyan31" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "710989138", + "voter": "romancs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59366614", + "voter": "luke490" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58762473", + "voter": "bro66" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "201822591", + "voter": "future24" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58623688", + "voter": "mythras" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56536509", + "voter": "imarealboy777" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "matrixdweller" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48299362", + "voter": "smartguylabcoat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59157099", + "voter": "mabiturm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48283979", + "voter": "captainamerica" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54761612", + "voter": "edbriv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "865125771", + "voter": "rittr" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "92614447", + "voter": "jelloducky" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52740989", + "voter": "tcstix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "49467477", + "voter": "friedwater" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57366185", + "voter": "denisdiaz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "132070449", + "voter": "loganarchy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48811442", + "voter": "love-spirit-nerd" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "51549585", + "voter": "dikanevn" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54017869", + "voter": "zelious" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "50129944", + "voter": "freebornangel" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "53196086", + "voter": "f1111111" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "anomaly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52394017140", + "voter": "jack8831" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "buckland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "goldmatters" + } + ], + "author": "steemit", + "author_reputation": 0, + "beneficiaries": [], + "body": "Steemit is a social media platform where anyone can earn STEEM points by posting. The more people who like a post, the more STEEM the poster earns. Anyone can sell their STEEM for cash or vest it to boost their voting power.", + "body_length": 224, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 36, + "created": "2016-03-30T18:30:18", + "curator_payout_value": "0.756 HBD", + "depth": 0, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T18:30:18", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 830053779138, + "parent_author": "", + "parent_permlink": "meta", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "firstpost", + "post_id": 1, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "Welcome to Steem!", + "total_payout_value": "0.942 HBD", + "url": "/meta/@steemit/firstpost" + }, + "entry_id": 0, + "reblogged_on": "1970-01-01T00:00:00" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/normal.pat.json b/hivemind/tavern/condenser_api_patterns/get_blog/normal.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..12e46ecb155973b0046c3e1c6bf3eef77667efa1 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/normal.pat.json @@ -0,0 +1,645 @@ +[ + { + "blog": "steemit", + "comment": { + "active_votes": [ + { + "percent": "100", + "reputation": 0, + "rshares": "375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "886132", + "voter": "mr11acdee" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit78" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1259167", + "voter": "anonymous" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "318519", + "voter": "hello" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "153384", + "voter": "world" + }, + { + "percent": "-100", + "reputation": 0, + "rshares": "-936400", + "voter": "ned" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59412", + "voter": "fufubar1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14997", + "voter": "anonymous1" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "1441", + "voter": "red" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "551390835500", + "voter": "liondani" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "82748", + "voter": "roadscape" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "10772", + "voter": "xeroc" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7685088000", + "voter": "markopaasila" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "454510724", + "voter": "tshering-tamang" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "681946946", + "voter": "romangelsi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "504895891", + "voter": "dedmatvey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "498863058", + "voter": "joelinux" + }, + { + "percent": "0", + "reputation": 0, + "rshares": "9590417", + "voter": "piranhax" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "473258270", + "voter": "ned-reddit-login" + }, + { + "percent": "3600", + "reputation": 0, + "rshares": "0", + "voter": "fernando-sanz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "381805870", + "voter": "gilang-ramadhan" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "392459059", + "voter": "kamvreto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "422984262", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47179379651", + "voter": "tosch" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7831667988", + "voter": "klye" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1019950749", + "voter": "coar" + }, + { + "percent": "1509", + "reputation": 0, + "rshares": "1746058458", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "22639073725", + "voter": "drinkzya" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "hien-tran" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "40624969", + "voter": "ben99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1742755097", + "voter": "sunshinecrypto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "485112237", + "voter": "marinabogumil" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "917398502", + "voter": "decrypt" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5067187498", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5154897955", + "voter": "r33drum" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5033902237", + "voter": "cryptosi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1037079223", + "voter": "condra" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "233032838", + "voter": "jearson" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "240809500", + "voter": "tritium" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "123321995", + "voter": "allmonitors" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226074637", + "voter": "artjedi" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "931542394", + "voter": "anduweb" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2292983350", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "128561059", + "voter": "maximkichev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "183438273", + "voter": "a9inchcock" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "266262926", + "voter": "desmonid" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71498008", + "voter": "madhatting" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23726644841", + "voter": "ubg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3741408303", + "voter": "royaltiffany" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "131577259", + "voter": "gribgo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12371398765", + "voter": "deanliu" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "28907874049", + "voter": "orm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "528988007", + "voter": "qonq99" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "129537329", + "voter": "rd7783" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "615020728", + "voter": "slava" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "flyboyzombie" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "100102503", + "voter": "sictransitgloria" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "95219365", + "voter": "curator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "232295871", + "voter": "dubovoy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "solos" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "96945805", + "voter": "creatorgalaxy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "99813231", + "voter": "trigonice29" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "blysards" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3721016208", + "voter": "uwe69" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1279854", + "voter": "nigmat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "13974353753", + "voter": "magicmonk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4968585456", + "voter": "satoshifpv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1660613178", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "10847083143", + "voter": "metrox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "18340928", + "voter": "bestmalik" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59563315", + "voter": "kolyan31" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "710989138", + "voter": "romancs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59366614", + "voter": "luke490" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58762473", + "voter": "bro66" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "201822591", + "voter": "future24" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58623688", + "voter": "mythras" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56536509", + "voter": "imarealboy777" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "matrixdweller" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48299362", + "voter": "smartguylabcoat" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "59157099", + "voter": "mabiturm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48283979", + "voter": "captainamerica" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54761612", + "voter": "edbriv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "865125771", + "voter": "rittr" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "92614447", + "voter": "jelloducky" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52740989", + "voter": "tcstix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "49467477", + "voter": "friedwater" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57366185", + "voter": "denisdiaz" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "132070449", + "voter": "loganarchy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "48811442", + "voter": "love-spirit-nerd" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "51549585", + "voter": "dikanevn" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "54017869", + "voter": "zelious" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "50129944", + "voter": "freebornangel" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "53196086", + "voter": "f1111111" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "anomaly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "52394017140", + "voter": "jack8831" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "buckland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "0", + "voter": "goldmatters" + } + ], + "author": "steemit", + "author_reputation": 0, + "beneficiaries": [], + "body": "Steemit is a social media platform where anyone can earn STEEM points by posting. The more people who like a post, the more STEEM the poster earns. Anyone can sell their STEEM for cash or vest it to boost their voting power.", + "body_length": 224, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 36, + "created": "2016-03-30T18:30:18", + "curator_payout_value": "0.756 HBD", + "depth": 0, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T18:30:18", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 830053779138, + "parent_author": "", + "parent_permlink": "meta", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "firstpost", + "post_id": 1, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "Welcome to Steem!", + "total_payout_value": "0.942 HBD", + "url": "/meta/@steemit/firstpost" + }, + "entry_id": 0, + "reblogged_on": "1970-01-01T00:00:00" + } +] \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_blog/normal.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_blog/normal.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..61e27d49dde28324414ac9b439211aeb903c0ff0 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_blog/normal.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_blog patterns test + + marks: + - patterntest + + includes: + - !include ../../common.yaml + + stages: + - name: get_blog + 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_blog" + params: {"account":"steemit","start_entry_id":0,"limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "normal" + directory: "condenser_api_patterns/get_blog" \ No newline at end of file