diff --git a/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.orig.json b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.orig.json new file mode 100644 index 0000000000000000000000000000000000000000..2b914187e1b6c4875aa01fb3c8065b4072bd9d8e --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.orig.json @@ -0,0 +1,94 @@ +[ + { + "active_votes": [ + { + "percent": "-100", + "reputation": 0, + "rshares": "-375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit46" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "81125", + "voter": "roadscape" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "431616594", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58854897335", + "voter": "business" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "244129227", + "voter": "kewpiedoll" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1615731741", + "voter": "naturalista" + } + ], + "author": "admin", + "author_reputation": 0, + "beneficiaries": [], + "body": "First Reply! Let's get this **party** started", + "body_length": 45, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 2, + "created": "2016-03-30T19:52:30", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T19:52:30", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 62423410900, + "parent_author": "steemit", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_steem_dollars": 10000, + "permlink": "firstpost", + "post_id": 2, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@admin/firstpost" + } +] diff --git a/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.pat.json b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.pat.json new file mode 100644 index 0000000000000000000000000000000000000000..f0cc63d8e111de53340b2020c048aed9083f76a3 --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.pat.json @@ -0,0 +1,94 @@ +[ + { + "active_votes": [ + { + "percent": "-100", + "reputation": 0, + "rshares": "-375241", + "voter": "dantheman" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "5100", + "voter": "steemit46" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "81125", + "voter": "roadscape" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "425903066", + "voter": "gekko" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "431616594", + "voter": "acidyo" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "742566481", + "voter": "patrick-g" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "58854897335", + "voter": "business" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "108855472", + "voter": "kingtylervvs" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "244129227", + "voter": "kewpiedoll" + }, + { + "percent": "10000", + "reputation": 0, + "rshares": "1615731741", + "voter": "naturalista" + } + ], + "author": "admin", + "author_reputation": 0, + "beneficiaries": [], + "body": "First Reply! Let's get this **party** started", + "body_length": 45, + "cashout_time": "1969-12-31T23:59:59", + "category": "meta", + "children": 2, + "created": "2016-03-30T19:52:30", + "curator_payout_value": "0.000 HBD", + "depth": 1, + "json_metadata": "{}", + "last_payout": "2016-08-24T19:59:42", + "last_update": "2016-03-30T19:52:30", + "max_accepted_payout": "1000000.000 HBD", + "net_rshares": 62423410900, + "parent_author": "steemit", + "parent_permlink": "firstpost", + "pending_payout_value": "0.000 HBD", + "percent_hbd": 10000, + "permlink": "firstpost", + "post_id": 2, + "promoted": "0.000 HBD", + "replies": [], + "root_title": "Welcome to Steem!", + "title": "", + "total_payout_value": "0.000 HBD", + "url": "/meta/@steemit/firstpost#@admin/firstpost" + } +] \ No newline at end of file diff --git a/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.tavern.yaml b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.tavern.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2de72e96170eb6a07106de6fa178febd506951fa --- /dev/null +++ b/hivemind/tavern/tags_api_patterns/get_discussions_by_comments/startauthor_startpermlink_limit.tavern.yaml @@ -0,0 +1,28 @@ +--- + test_name: Hivemind tags_api.get_discussions_by_comments patterns test + + marks: + - patterntest + + includes: + - !include ../../common.yaml + + stages: + - name: get_discussions_by_comments + 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_discussions_by_comments" + params: {"start_author":"admin","start_permlink":"firstpost","limit":1} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern + extra_kwargs: + method: "startauthor_startpermlink_limit" + directory: "tags_api_patterns/get_discussions_by_comments" \ No newline at end of file