diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.orig.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..f19efa5fc0e323dfc20435ec48424d1a9d65a0e4 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.orig.json @@ -0,0 +1,33 @@ +[ + { + "active_votes": [], + "author": "philanthropest", + "author_reputation": 0, + "beneficiaries": [], + "body": "<html>\n<p>James Comey -the Director of the FBI - puts tape over his personal laptop camera and webcams. </p>\n<p>I'm not crazy for having masking tape over my camera...I'm not alone....</p>\n<p>https://www.youtube.com/watch?v=y02aBfNT8n4</p>\n<p>WHY AREN'T PEOPLE MORE CONCERNED ABOUT BEING LISTENED TO...YES, IT IS INVASIVE TO KNOW YOU ARE BEING WATCHED, BUT....</p>\n<ul>\n <li>People SAY more revealing and interesting stuff than they DO....so, I would much rather be a blind fly on the wall than deaf. </li>\n</ul>\n<h1><strong>AS IF THEY AREN'T LISTENING</strong> TO YOU/ME....IF THEY ARE WATCHING...THEY ARE OBVIOUSLY LISTENING</h1>\n</html>", + "body_length": 652, + "cashout_time": "2016-09-16T07:40:21", + "category": "freedom", + "children": 0, + "created": "2016-09-15T19:40:21", + "curator_payout_value": "0.000 HBD", + "depth": 0, + "json_metadata": "{\"tags\":[\"freedom\",\"anarchy\",\"steem\",\"life\",\"\"],\"image\":[\"https:\\/\\/img.youtube.com\\/vi\\/y02aBfNT8n4\\/0.jpg\"],\"links\":[\"https:\\/\\/www.youtube.com\\/watch?v=y02aBfNT8n4\"]}", + "last_payout": "1969-12-31T23:59:59", + "last_update": "2016-09-15T19:42:36", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "", + "parent_permlink": "freedom", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "cover-your-laptop-and-phone-camera-comey-dir-of-the-fbi-does", + "post_id": 960979, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "COVER YOUR LAPTOP -and phone- CAMERA - Comey; DIR OF THE FBI DOES", + "title": "COVER YOUR LAPTOP -and phone- CAMERA - Comey; DIR OF THE FBI DOES", + "total_payout_value": "0.000 HBD", + "url": "/freedom/@philanthropest/cover-your-laptop-and-phone-camera-comey-dir-of-the-fbi-does" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.pat.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..4051af5ee60d3670eecce07d03def7a6353af9b4 --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.pat.json @@ -0,0 +1,33 @@ +[ + { + "active_votes": [], + "author": "philanthropest", + "author_reputation": 0, + "beneficiaries": [], + "body": "<html>\n<p>James Comey -the Director of the FBI - puts tape over his personal laptop camera and webcams. </p>\n<p>I'm not crazy for having masking tape over my camera...I'm not alone....</p>\n<p>https://www.youtube.com/watch?v=y02aBfNT8n4</p>\n<p>WHY AREN'T PEOPLE MORE CONCERNED ABOUT BEING LISTENED TO...YES, IT IS INVASIVE TO KNOW YOU ARE BEING WATCHED, BUT....</p>\n<ul>\n <li>People SAY more revealing and interesting stuff than they DO....so, I would much rather be a blind fly on the wall than deaf. </li>\n</ul>\n<h1><strong>AS IF THEY AREN'T LISTENING</strong> TO YOU/ME....IF THEY ARE WATCHING...THEY ARE OBVIOUSLY LISTENING</h1>\n</html>", + "body_length": 652, + "cashout_time": "2016-09-22T19:40:21", + "category": "freedom", + "children": 0, + "created": "2016-09-15T19:40:21", + "curator_payout_value": "0.000 HBD", + "depth": 0, + "json_metadata": "{\"tags\":[\"freedom\",\"anarchy\",\"steem\",\"life\",\"\"],\"image\":[\"https://img.youtube.com/vi/y02aBfNT8n4/0.jpg\"],\"links\":[\"https://www.youtube.com/watch?v=y02aBfNT8n4\"]}", + "last_payout": "1969-12-31T23:59:59", + "last_update": "2016-09-15T19:42:36", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 0, + "parent_author": "", + "parent_permlink": "freedom", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "cover-your-laptop-and-phone-camera-comey-dir-of-the-fbi-does", + "post_id": 1257871, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "COVER YOUR LAPTOP -and phone- CAMERA - Comey; DIR OF THE FBI DOES", + "title": "COVER YOUR LAPTOP -and phone- CAMERA - Comey; DIR OF THE FBI DOES", + "total_payout_value": "0.000 HBD", + "url": "/freedom/@philanthropest/cover-your-laptop-and-phone-camera-comey-dir-of-the-fbi-does" + } +] diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3473cc7391b5c2f48e7c76c3f83d01f0bd70522e --- /dev/null +++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind condenser_api.get_discussions_by_created patterns test + + marks: + - patterntest + + includes: + - !include ../../common.yaml + + stages: + - name: get_discussions_by_created + 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_discussions_by_created" + params: {"tag":"steem","limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "steem" + directory: "condenser_api_patterns/get_discussions_by_created" \ No newline at end of file