From 0c99941c17367ce83739489873585af2de9f73bf Mon Sep 17 00:00:00 2001 From: Paulina Czempiel <pczempiel@syncad.com> Date: Wed, 9 Sep 2020 09:29:05 +0200 Subject: [PATCH] condenser_api_patterns get_discussions_by_created moved to folder --- .../steem.orig.json | 33 +++++++++++++++++++ .../get_discussions_by_created/steem.pat.json | 33 +++++++++++++++++++ .../steem.tavern.yaml | 28 ++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.orig.json create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.pat.json create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_created/steem.tavern.yaml 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 00000000..f19efa5f --- /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 00000000..4051af5e --- /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 00000000..3473cc73 --- /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 -- GitLab