diff --git a/hivemind/tavern/condenser_api_negative/get_content/deleted_post.orig.json b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..893d1049a870748f607c4751e68c4cf4a32dee46 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.orig.json @@ -0,0 +1,5 @@ +{ + "code": -32000, + "data": "IndexError: list index out of range", + "message": "Server error" +} diff --git a/hivemind/tavern/condenser_api_negative/get_content/deleted_post.pat.json b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..546bf3b01f9abad49ff5331652b68331c6802bb7 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.pat.json @@ -0,0 +1,5 @@ +{ + "code": -32602, + "data": "post was not found in cache", + "message": "Invalid parameters" +} diff --git a/hivemind/tavern/condenser_api_negative/get_content/deleted_post.tavern.yaml b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4510b19e2932da9a5eb2e7eedf8aab77c7ba90f6 --- /dev/null +++ b/hivemind/tavern/condenser_api_negative/get_content/deleted_post.tavern.yaml @@ -0,0 +1,30 @@ +--- + test_name: Hivemind condenser_api.get_content deleted post patterns test + + marks: + - patterntest + - negative + + includes: + - !include ../../common.yaml + + stages: + - name: get_content gtg + 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_content" + params: ["jsc", "testing-summary"] + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "deleted_post" + directory: "condenser_api_negative/get_content" + error_response: true \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_content/gtg.orig.json b/hivemind/tavern/condenser_api_patterns/get_content/gtg.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..75d9de1c80d58e40b68a37cd0c24f9c86ac1901d --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/gtg.orig.json @@ -0,0 +1,554 @@ +{ + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "7498426175709", + "voter": "steempty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "42312727614219", + "voter": "blocktrades" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "305178325808", + "voter": "justin" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "869557685770", + "voter": "silver" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5114872713665", + "voter": "roadscape" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2289539684123", + "voter": "complexring" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2180802207", + "voter": "chloe" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2185117237", + "voter": "jen" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14176153154", + "voter": "danknugs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "198373663832", + "voter": "steemservices" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "30116948361", + "voter": "aizensou" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "46091054", + "voter": "kelly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6428425796", + "voter": "bentley" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "91926650", + "voter": "gandalf" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "345893040115", + "voter": "boatymcboatface" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "27177508174", + "voter": "proctologic" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "316897956", + "voter": "sophia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "21914098976", + "voter": "hcf27" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7368210672", + "voter": "modeprator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "103782757471", + "voter": "edgeland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "785540122070", + "voter": "steemship" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5786912627", + "voter": "spaninv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "196850398821", + "voter": "pal" + }, + { + "percent": "3301", + "reputation": 0, + "rshares": "2792608078", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "98699236", + "voter": "itay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "9975325205", + "voter": "johnerfx" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "206512826638", + "voter": "taoteh1221" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57136530202", + "voter": "juanmiguelsalas" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "9128119179", + "voter": "somedude" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "203906072916", + "voter": "kaylinart" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "867610016", + "voter": "johnerminer" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "32485842972", + "voter": "geoffrey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2480411371", + "voter": "gary-smith" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23267718250", + "voter": "jparty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1953019618", + "voter": "mammasitta" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "25911121779", + "voter": "gtg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4679981480", + "voter": "madwallace" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "39716978937", + "voter": "lauralemons" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "461256359", + "voter": "chamviet" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "15413814887", + "voter": "r4fken" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6283643209", + "voter": "endaksi1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "16250564070", + "voter": "picokernel" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "702264837", + "voter": "furion" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "80421874395", + "voter": "anyx" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2241994263", + "voter": "egjoshslim" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "120632910259", + "voter": "paco" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6621475753", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226092177", + "voter": "jesse5th" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23810445079", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "210829632", + "voter": "glassice" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "203070157", + "voter": "lenar79" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "15277675835", + "voter": "arcurus" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "101769596658", + "voter": "johnsmith" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "330264489", + "voter": "steeminer" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "55123516", + "voter": "cire81" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "20346345482", + "voter": "celebr1ty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "116522786", + "voter": "kibela" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4195953733", + "voter": "sulev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1863529002", + "voter": "glitterpig" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "88147854", + "voter": "alrx6918" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "156246825", + "voter": "vitz81" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7842906910", + "voter": "rawnetics" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2110595726", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47302483", + "voter": "persianqueen" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "309993436467", + "voter": "glitterfart" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "102759457", + "voter": "caitlinm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71928410", + "voter": "jellenmark" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "151302584", + "voter": "agussudaryanto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12663424", + "voter": "ciao" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "519527818", + "voter": "iaco" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14786662", + "voter": "steemo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1568749518", + "voter": "nixonnox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3195610059", + "voter": "hanshotfirst" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2458086", + "voter": "steema" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12950553", + "voter": "confucius" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "911816960", + "voter": "bledarus" + }, + { + "percent": "10", + "reputation": 0, + "rshares": "1251336", + "voter": "softpunk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3742919", + "voter": "jarvis" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "37069491", + "voter": "thecurator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "229846452", + "voter": "mefisto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "104558988", + "voter": "cinderphoenix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "98540677", + "voter": "steeminion" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57959648", + "voter": "piezolit" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "8108416", + "voter": "brucy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "35603456", + "voter": "shukerona" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56023735", + "voter": "leticiapink" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "295195987", + "voter": "steeminnow" + } + ], + "author": "gtg", + "author_reputation": 3920426655270, + "beneficiaries": [], + "body": "Hello, World!\n\nMy intention is not to make it into top 19. I could name many other candidates (clearly more than 19) with greater commitment to steem(it) who are a lot more appropriate as witnesses, but I'm sure I can be useful as a backup witness.\n\nI introduced myself here:\nhttps://steemit.com/introduceyourself/@gtg/hello-world\nThose of you who use https://steemit.chat know me as **Gandalf**.\nFor some time, I\u2019ve been using my magic powers (mostly those related to security and infrastructure) to improve steemit. For example, I\u2019ve improved our \"Perfect\" Forward Secrecy and made our communication with site more secure.\n\nMy **seed node** (EU based):\n`seed-node = gtg.steem.house:2001`\nYou can also use it to rsync data dir\n`rsync -Pa rsync://gtg.steem.house/witness_node_data_dir .`\n\nMy **witness node** is on a separate data center (an EU-based one as well).\nIf you believe I can be of value to steemit, please vote for me:\n`vote_for_witness YOURACCOUNT gtg true true`\n\n", + "body_length": 1023, + "cashout_time": "1969-12-31T23:59:59", + "category": "witness-category", + "children": 7, + "created": "2016-08-05T14:02:24", + "curator_payout_value": "231.879 HBD", + "depth": 0, + "json_metadata": "{\"tags\":[\"witness-category\"],\"links\":[\"https:\\/\\/steemit.com\\/introduceyourself\\/@gtg\\/hello-world\"]}", + "last_payout": "2016-09-05T05:17:57", + "last_update": "2016-08-05T14:02:24", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 61504610477823, + "parent_author": "", + "parent_permlink": "witness-category", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "witness-gtg", + "post_id": 463046, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Witness \"gtg\"", + "title": "Witness \"gtg\"", + "total_payout_value": "703.088 HBD", + "url": "/witness-category/@gtg/witness-gtg" +} diff --git a/hivemind/tavern/condenser_api_patterns/get_content/gtg.pat.json b/hivemind/tavern/condenser_api_patterns/get_content/gtg.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..8f5b27ac394156c08b2046466bb590327c997ae7 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/gtg.pat.json @@ -0,0 +1,554 @@ +{ + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "7498426175709", + "voter": "steempty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "42312727614219", + "voter": "blocktrades" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "305178325808", + "voter": "justin" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "869557685770", + "voter": "silver" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5114872713665", + "voter": "roadscape" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2289539684123", + "voter": "complexring" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2180802207", + "voter": "chloe" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2185117237", + "voter": "jen" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14176153154", + "voter": "danknugs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "198373663832", + "voter": "steemservices" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "30116948361", + "voter": "aizensou" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "46091054", + "voter": "kelly" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6428425796", + "voter": "bentley" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "91926650", + "voter": "gandalf" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "345893040115", + "voter": "boatymcboatface" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "27177508174", + "voter": "proctologic" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "316897956", + "voter": "sophia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "21914098976", + "voter": "hcf27" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7368210672", + "voter": "modeprator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "103782757471", + "voter": "edgeland" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "785540122070", + "voter": "steemship" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5786912627", + "voter": "spaninv" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "196850398821", + "voter": "pal" + }, + { + "percent": "3301", + "reputation": 0, + "rshares": "2792608078", + "voter": "murh" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "98699236", + "voter": "itay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "9975325205", + "voter": "johnerfx" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "206512826638", + "voter": "taoteh1221" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57136530202", + "voter": "juanmiguelsalas" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "9128119179", + "voter": "somedude" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "203906072916", + "voter": "kaylinart" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "867610016", + "voter": "johnerminer" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "32485842972", + "voter": "geoffrey" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2480411371", + "voter": "gary-smith" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23267718250", + "voter": "jparty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1953019618", + "voter": "mammasitta" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "25911121779", + "voter": "gtg" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4679981480", + "voter": "madwallace" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "39716978937", + "voter": "lauralemons" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "461256359", + "voter": "chamviet" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "15413814887", + "voter": "r4fken" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6283643209", + "voter": "endaksi1" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "16250564070", + "voter": "picokernel" + }, + { + "percent": "100", + "reputation": 0, + "rshares": "702264837", + "voter": "furion" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "80421874395", + "voter": "anyx" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2241994263", + "voter": "egjoshslim" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "120632910259", + "voter": "paco" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "6621475753", + "voter": "senseiteekay" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "226092177", + "voter": "jesse5th" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "23810445079", + "voter": "inertia" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "210829632", + "voter": "glassice" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "203070157", + "voter": "lenar79" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "15277675835", + "voter": "arcurus" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "101769596658", + "voter": "johnsmith" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "330264489", + "voter": "steeminer" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "55123516", + "voter": "cire81" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "20346345482", + "voter": "celebr1ty" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "116522786", + "voter": "kibela" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "4195953733", + "voter": "sulev" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1863529002", + "voter": "glitterpig" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "88147854", + "voter": "alrx6918" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "156246825", + "voter": "vitz81" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "7842906910", + "voter": "rawnetics" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2110595726", + "voter": "naturalista" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "47302483", + "voter": "persianqueen" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "309993436467", + "voter": "glitterfart" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "102759457", + "voter": "caitlinm" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "71928410", + "voter": "jellenmark" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "151302584", + "voter": "agussudaryanto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12663424", + "voter": "ciao" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "519527818", + "voter": "iaco" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "14786662", + "voter": "steemo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1568749518", + "voter": "nixonnox" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3195610059", + "voter": "hanshotfirst" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "2458086", + "voter": "steema" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "12950553", + "voter": "confucius" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "911816960", + "voter": "bledarus" + }, + { + "percent": "10", + "reputation": 0, + "rshares": "1251336", + "voter": "softpunk" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "3742919", + "voter": "jarvis" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "37069491", + "voter": "thecurator" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "229846452", + "voter": "mefisto" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "104558988", + "voter": "cinderphoenix" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "98540677", + "voter": "steeminion" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "57959648", + "voter": "piezolit" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "8108416", + "voter": "brucy" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "35603456", + "voter": "shukerona" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "56023735", + "voter": "leticiapink" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "295195987", + "voter": "steeminnow" + } + ], + "author": "gtg", + "author_reputation": 0, + "beneficiaries": [], + "body": "Hello, World!\n\nMy intention is not to make it into top 19. I could name many other candidates (clearly more than 19) with greater commitment to steem(it) who are a lot more appropriate as witnesses, but I'm sure I can be useful as a backup witness.\n\nI introduced myself here:\nhttps://steemit.com/introduceyourself/@gtg/hello-world\nThose of you who use https://steemit.chat know me as **Gandalf**.\nFor some time, I\u2019ve been using my magic powers (mostly those related to security and infrastructure) to improve steemit. For example, I\u2019ve improved our \"Perfect\" Forward Secrecy and made our communication with site more secure.\n\nMy **seed node** (EU based):\n`seed-node = gtg.steem.house:2001`\nYou can also use it to rsync data dir\n`rsync -Pa rsync://gtg.steem.house/witness_node_data_dir .`\n\nMy **witness node** is on a separate data center (an EU-based one as well).\nIf you believe I can be of value to steemit, please vote for me:\n`vote_for_witness YOURACCOUNT gtg true true`\n\n", + "body_length": 1023, + "cashout_time": "1969-12-31T23:59:59", + "category": "witness-category", + "children": 7, + "created": "2016-08-05T14:02:24", + "curator_payout_value": "231.879 HBD", + "depth": 0, + "json_metadata": "{\"tags\":[\"witness-category\"],\"links\":[\"https://steemit.com/introduceyourself/@gtg/hello-world\"]}", + "last_payout": "2016-09-05T05:17:57", + "last_update": "2016-08-05T14:02:24", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 61504610477823, + "parent_author": "", + "parent_permlink": "witness-category", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "witness-gtg", + "post_id": 624896, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Witness \"gtg\"", + "title": "Witness \"gtg\"", + "total_payout_value": "703.088 HBD", + "url": "/witness-category/@gtg/witness-gtg" +} diff --git a/hivemind/tavern/condenser_api_patterns/get_content/gtg.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_content/gtg.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..947b4529f69059b27f3447a220bfa768bb288325 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/gtg.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_content gtg patterns test + + marks: + - patterntest # fat node was giving more data + + includes: + - !include ../../common.yaml + + stages: + - name: get_content gtg + 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_content" + params: ["gtg", "witness-gtg"] + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "gtg" + directory: "condenser_api_patterns/get_content" \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_content/replies.orig.json b/hivemind/tavern/condenser_api_patterns/get_content/replies.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..e100bca2833ff49f9c3d5aeb5a1ea9d2e68002a5 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/replies.orig.json @@ -0,0 +1,95 @@ +[ + { + "active_votes": [], + "author": "trogdor", + "author_reputation": 0, + "beneficiaries": [], + "body": "Nice, I understand the \"owned by a cat\" sentiment. haha", + "body_length": 55, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-03T17:51:48", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-03T17:51:48", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "re-gtg-hello-world-20160703t175141501z", + "post_id": 36953, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@trogdor/re-gtg-hello-world-20160703t175141501z" + }, + { + "active_votes": [], + "author": "amartinezque", + "author_reputation": 0, + "beneficiaries": [], + "body": "Cats, humans , all we move for instinct and curiosity. Welcome! And your cat also!:P", + "body_length": 84, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-03T22:45:27", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-03T22:45:27", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "re-gtg-hello-world-20160703t224527020z", + "post_id": 37179, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@amartinezque/re-gtg-hello-world-20160703t224527020z" + }, + { + "active_votes": [], + "author": "edu-lopov", + "author_reputation": 0, + "beneficiaries": [], + "body": "Welcome to Steemit Gandalf!", + "body_length": 27, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-04T18:22:51", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-04T18:22:51", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "re-gtg-hello-world-20160704t182251522z", + "post_id": 38463, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@edu-lopov/re-gtg-hello-world-20160704t182251522z" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_content/replies.pat.json b/hivemind/tavern/condenser_api_patterns/get_content/replies.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..e1b67ccf1e2bdcb32d125064e7f273af600a54ad --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/replies.pat.json @@ -0,0 +1,95 @@ +[ + { + "active_votes": [], + "author": "trogdor", + "author_reputation": 0, + "beneficiaries": [], + "body": "Nice, I understand the \"owned by a cat\" sentiment. haha", + "body_length": 55, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-03T17:51:48", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-03T17:51:48", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "re-gtg-hello-world-20160703t175141501z", + "post_id": 51479, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@trogdor/re-gtg-hello-world-20160703t175141501z" + }, + { + "active_votes": [], + "author": "amartinezque", + "author_reputation": 0, + "beneficiaries": [], + "body": "Cats, humans , all we move for instinct and curiosity. Welcome! And your cat also!:P", + "body_length": 84, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-03T22:45:27", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-03T22:45:27", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "re-gtg-hello-world-20160703t224527020z", + "post_id": 51824, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@amartinezque/re-gtg-hello-world-20160703t224527020z" + }, + { + "active_votes": [], + "author": "edu-lopov", + "author_reputation": 0, + "beneficiaries": [], + "body": "Welcome to Steemit Gandalf!", + "body_length": 27, + "cashout_time": "1969-12-31T23:59:59", + "category": "introduceyourself", + "children": 0, + "created": "2016-07-04T18:22:51", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{\"tags\":[\"introduceyourself\"]}", + "last_payout": "2016-08-13T21:04:45", + "last_update": "2016-07-04T18:22:51", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "gtg", + "parent_permlink": "hello-world", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "re-gtg-hello-world-20160704t182251522z", + "post_id": 53542, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Hello, World!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/introduceyourself/@gtg/hello-world#@edu-lopov/re-gtg-hello-world-20160704t182251522z" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_content/replies.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_content/replies.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e02fabd8c886cc6880dd9759041ba1dfcc18b68a --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/replies.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_content_replies patterns test + + marks: + - patterntest # fat node was giving more data + + includes: + - !include ../../common.yaml + + stages: + - name: get_content_replies + 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_content_replies" + params: ["gtg", "hello-world"] + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "replies" + directory: "condenser_api_patterns/get_content" \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.orig.json b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..86f26ab24c80720fd863474e386f3f833a3afae1 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.orig.json @@ -0,0 +1,638 @@ +{ + "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" +} diff --git a/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.pat.json b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..9ab77365bca2d8ccbdf5544b9b18aa78ed5c175b --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.pat.json @@ -0,0 +1,638 @@ +{ + "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" +} \ No newline at end of file diff --git a/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..44ddbb63f68bcf1e13e452337fade64a3948221e --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_content/steemit_firstpost.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_content patterns test + + marks: + - patterntest # fat node was giving more data + + includes: + - !include ../../common.yaml + + stages: + - name: get_content + 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_content" + params: ["steemit", "firstpost"] + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "steemit_firstpost" + directory: "condenser_api_patterns/get_content" \ No newline at end of file