From 228cf4dc88e454ea8b628a3ff1874776185354b3 Mon Sep 17 00:00:00 2001 From: Paulina Czempiel <pczempiel@syncad.com> Date: Mon, 7 Sep 2020 11:04:01 +0200 Subject: [PATCH] tags_api get_content_replies moved to folder --- .../author_permlink.orig.json | 84 +++++++++++++++++++ .../author_permlink.pat.json | 84 +++++++++++++++++++ .../author_permlink.tavern.yaml | 28 +++++++ 3 files changed, 196 insertions(+) create mode 100644 hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.orig.json create mode 100644 hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.pat.json create mode 100644 hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.tavern.yaml diff --git a/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.orig.json b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.orig.json new file mode 100644 index 00000000..ef7d6ee3 --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.orig.json @@ -0,0 +1,84 @@ +[ + { + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + } + ], + "author": "kingtylervvs", + "author_reputation": 0, + "beneficiaries": [], + "body": "PARTY PARTY.... P - A - R - T - Y????? BECAUSE I GOTTA!", + "body_length": 55, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 0, + "created": "2016-07-17T19:38:12", + "curator_payout_value": "0.000 HBD", + "depth": 2, + "json_metadata": "{\"tags\":[\"meta\"]}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-07-17T19:38:12", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 742566481, + "parent_author": "admin", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "re-admin-firstpost-20160717t193811098z", + "post_id": 110463, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@kingtylervvs/re-admin-firstpost-20160717t193811098z" + }, + { + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "111000395", + "voter": "bustillos" + } + ], + "author": "gopher", + "author_reputation": 0, + "beneficiaries": [], + "body": "Are you admin in steem? If you have been hacked, who can help you?", + "body_length": 66, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 0, + "created": "2016-07-18T19:53:12", + "curator_payout_value": "0.000 HBD", + "depth": 2, + "json_metadata": "{\"tags\":[\"meta\"]}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-07-18T19:53:12", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 853566876, + "parent_author": "admin", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "re-admin-firstpost-20160718t195306992z", + "post_id": 125730, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@gopher/re-admin-firstpost-20160718t195306992z" + } +] diff --git a/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.pat.json b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.pat.json new file mode 100644 index 00000000..ab5a545c --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.pat.json @@ -0,0 +1,84 @@ +[ + { + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + } + ], + "author": "kingtylervvs", + "author_reputation": 0, + "beneficiaries": [], + "body": "PARTY PARTY.... P - A - R - T - Y????? BECAUSE I GOTTA!", + "body_length": 55, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 0, + "created": "2016-07-17T19:38:12", + "curator_payout_value": "0.000 HBD", + "depth": 2, + "json_metadata": "{\"tags\":[\"meta\"]}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-07-17T19:38:12", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 742566481, + "parent_author": "admin", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "re-admin-firstpost-20160717t193811098z", + "post_id": 151464, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@kingtylervvs/re-admin-firstpost-20160717t193811098z" + }, + { + "active_votes": [ + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "111000395", + "voter": "bustillos" + } + ], + "author": "gopher", + "author_reputation": 0, + "beneficiaries": [], + "body": "Are you admin in steem? If you have been hacked, who can help you?", + "body_length": 66, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 0, + "created": "2016-07-18T19:53:12", + "curator_payout_value": "0.000 HBD", + "depth": 2, + "json_metadata": "{\"tags\":[\"meta\"]}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-07-18T19:53:12", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 853566876, + "parent_author": "admin", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "re-admin-firstpost-20160718t195306992z", + "post_id": 172339, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@gopher/re-admin-firstpost-20160718t195306992z" + } +] diff --git a/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.tavern.yaml b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.tavern.yaml new file mode 100644 index 00000000..310ce5ba --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_content_replies/author_permlink.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind tags_api.get_content_replies patterns test + + marks: + - patterntest + + 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: "tags_api.get_content_replies" + params: {"author":"admin", "permlink":"firstpost"} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "author_permlink" + directory: "tags_api_patterns/get_content_replies" \ No newline at end of file -- GitLab