From 94cffad7eed882874f65dff7f786319c6febee29 Mon Sep 17 00:00:00 2001
From: mtrela <mtrela@syncad.com>
Date: Tue, 10 Nov 2020 14:45:30 +0100
Subject: [PATCH] Added tests to
 `condenser_api_patterns/get_discussions_by_comments` group

---
 .../cryptos.orig.json                         | 108 ++++++
 .../cryptos.pat.json                          | 108 ++++++
 .../cryptos.tavern.yaml                       |  28 ++
 .../roadscape.orig.json                       | 333 ++++++++++++++++++
 .../roadscape.pat.json                        | 333 ++++++++++++++++++
 .../roadscape.tavern.yaml                     |  28 ++
 6 files changed, 938 insertions(+)
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.orig.json
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.pat.json
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.tavern.yaml
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.orig.json
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.pat.json
 create mode 100644 hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.tavern.yaml

diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.orig.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.orig.json
new file mode 100644
index 00000000..1152d786
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.orig.json
@@ -0,0 +1,108 @@
+[
+  {
+    "active_votes": [],
+    "author": "cryptos",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "It is a new feature that has just been introduced, that is why you have not noticed it before... :)",
+    "body_length": 99,
+    "cashout_time": "2016-09-16T19:24:55",
+    "category": "steemit",
+    "children": 1,
+    "created": "2016-09-15T19:28:24",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{\"tags\":[\"steemit\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T19:28:24",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "nippel66",
+    "parent_permlink": "pay-me-100-in-steem-power-when-submit-a-story",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-nippel66-pay-me-100-in-steem-power-when-submit-a-story-20160915t192819697z",
+    "post_id": 960872,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Pay me 100% in Steem Power. When submit a story!",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemit/@nippel66/pay-me-100-in-steem-power-when-submit-a-story#@cryptos/re-nippel66-pay-me-100-in-steem-power-when-submit-a-story-20160915t192819697z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "5555",
+        "reputation": 0,
+        "rshares": "1061228665",
+        "voter": "murh"
+      },
+      {
+        "percent": "10000",
+        "reputation": 0,
+        "rshares": "262426429473",
+        "voter": "liberosist"
+      }
+    ],
+    "author": "cryptos",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "Seems like I'm among the top authors, so thank you :)",
+    "body_length": 53,
+    "cashout_time": "2016-09-15T22:00:19",
+    "category": "curie",
+    "children": 0,
+    "created": "2016-09-15T13:01:21",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{\"tags\":[\"curie\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T13:01:21",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 263487658138,
+    "parent_author": "curie",
+    "parent_permlink": "special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016",
+    "pending_payout_value": "0.061 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-curie-special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016-20160915t130117817z",
+    "post_id": 957464,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Special Edition: Major Updates & Project Curie Month #1 Roundup (12 August - 11 September 2016)",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/curie/@curie/special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016#@cryptos/re-curie-special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016-20160915t130117817z"
+  },
+  {
+    "active_votes": [],
+    "author": "cryptos",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "It is really interesting and works well, great toy for everyone into crypto :)",
+    "body_length": 78,
+    "cashout_time": "2016-09-16T12:02:23",
+    "category": "mining",
+    "children": 0,
+    "created": "2016-09-15T11:55:18",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{\"tags\":[\"mining\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T11:55:18",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "crowe",
+    "parent_permlink": "re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t114224614z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-crowe-re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t115513670z",
+    "post_id": 957046,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "The Baikal Mini Miner ASIC, a Nice Home Crypto Miner",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/mining/@cryptos/the-baikal-mini-miner-asic-a-nice-home-crypto-miner#@cryptos/re-crowe-re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t115513670z"
+  }
+]
diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.pat.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.pat.json
new file mode 100644
index 00000000..8c983c95
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.pat.json
@@ -0,0 +1,108 @@
+[
+  {
+    "active_votes": [],
+    "author": "cryptos",
+    "author_reputation": 9523766827937,
+    "beneficiaries": [],
+    "body": "It is a new feature that has just been introduced, that is why you have not noticed it before... :)",
+    "body_length": 99,
+    "cashout_time": "2016-09-22T19:28:24",
+    "category": "steemit",
+    "children": 1,
+    "created": "2016-09-15T19:28:24",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{\"tags\":[\"steemit\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T19:28:24",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "nippel66",
+    "parent_permlink": "pay-me-100-in-steem-power-when-submit-a-story",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-nippel66-pay-me-100-in-steem-power-when-submit-a-story-20160915t192819697z",
+    "post_id": 1257733,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Pay me 100% in Steem Power. When submit a story!",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemit/@nippel66/pay-me-100-in-steem-power-when-submit-a-story#@cryptos/re-nippel66-pay-me-100-in-steem-power-when-submit-a-story-20160915t192819697z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "5555",
+        "reputation": 2902053059801,
+        "rshares": 1061228665,
+        "voter": "murh"
+      },
+      {
+        "percent": "10000",
+        "reputation": 20001506960251,
+        "rshares": 262426429473,
+        "voter": "liberosist"
+      }
+    ],
+    "author": "cryptos",
+    "author_reputation": 9523766827937,
+    "beneficiaries": [],
+    "body": "Seems like I'm among the top authors, so thank you :)",
+    "body_length": 53,
+    "cashout_time": "2016-09-22T13:01:21",
+    "category": "curie",
+    "children": 0,
+    "created": "2016-09-15T13:01:21",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{\"tags\":[\"curie\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T13:01:21",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 263487658138,
+    "parent_author": "curie",
+    "parent_permlink": "special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016",
+    "pending_payout_value": "0.063 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-curie-special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016-20160915t130117817z",
+    "post_id": 1253517,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Special Edition: Major Updates & Project Curie Month #1 Roundup (12 August - 11 September 2016)",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/curie/@curie/special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016#@cryptos/re-curie-special-edition-major-updates-and-project-curie-month-1-roundup-12-august-11-september-2016-20160915t130117817z"
+  },
+  {
+    "active_votes": [],
+    "author": "cryptos",
+    "author_reputation": 9523766827937,
+    "beneficiaries": [],
+    "body": "It is really interesting and works well, great toy for everyone into crypto :)",
+    "body_length": 78,
+    "cashout_time": "2016-09-22T11:55:18",
+    "category": "mining",
+    "children": 0,
+    "created": "2016-09-15T11:55:18",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{\"tags\":[\"mining\"]}",
+    "last_payout": "1969-12-31T23:59:59",
+    "last_update": "2016-09-15T11:55:18",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "crowe",
+    "parent_permlink": "re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t114224614z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-crowe-re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t115513670z",
+    "post_id": 1253006,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "The Baikal Mini Miner ASIC, a Nice Home Crypto Miner",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/mining/@cryptos/the-baikal-mini-miner-asic-a-nice-home-crypto-miner#@cryptos/re-crowe-re-cryptos-the-baikal-mini-miner-asic-a-nice-home-crypto-miner-20160915t115513670z"
+  }
+]
diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.tavern.yaml
new file mode 100644
index 00000000..b4a8a4af
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/cryptos.tavern.yaml
@@ -0,0 +1,28 @@
+---
+  test_name: Hivemind condenser_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: "condenser_api.get_discussions_by_comments"
+          params: {"start_author":"cryptos","start_permlink":"","limit":3}
+      response:
+        status_code: 200
+        verify_response_with:
+          function: validate_response:compare_response_with_pattern
+          extra_kwargs:
+            method: "cryptos"
+            directory: "condenser_api_patterns/get_discussions_by_comments"
\ No newline at end of file
diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.orig.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.orig.json
new file mode 100644
index 00000000..fbb936fc
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.orig.json
@@ -0,0 +1,333 @@
+[
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "I suspect this may be the same problem reported here: https://github.com/steemit/steem/issues/24",
+    "body_length": 96,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-26T21:12:51",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-19T15:47:42",
+    "last_update": "2016-05-26T21:12:51",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "cyrano.witness",
+    "parent_permlink": "http-rpc-api-bug",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-cyranowitness-http-rpc-api-bug-20160526t211251696z",
+    "post_id": 11350,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "HTTP RPC API bug?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@cyrano.witness/http-rpc-api-bug#@roadscape/re-cyranowitness-http-rpc-api-bug-20160526t211251696z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "Awesome page, well done!\n\n162.213.199.171:34191 (aka seed.steemd.com:34191) is run by me.",
+    "body_length": 89,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steem",
+    "children": 0,
+    "created": "2016-05-20T04:17:42",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T23:07:42",
+    "last_update": "2016-05-20T04:17:42",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "wackou",
+    "parent_permlink": "steem-nodes-live-status",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-wackou-steem-nodes-live-status-20160520t041742965z",
+    "post_id": 7202,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steem nodes live status",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steem/@wackou/steem-nodes-live-status#@roadscape/re-wackou-steem-nodes-live-status-20160520t041742965z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 0,
+        "rshares": "559198351",
+        "voter": "bob-the-poster"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "I believe I've corrected the mistake, could you please confirm that it's working as expected now?",
+    "body_length": 97,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 1,
+    "created": "2016-05-17T03:45:48",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 4,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-17T03:45:48",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 559198351,
+    "parent_author": "bob-the-poster",
+    "parent_permlink": "re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z-20160511t144842688z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-bob-the-poster-re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160516t224432214z",
+    "post_id": 5790,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-bob-the-poster-re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160516t224432214z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "Done :)",
+    "body_length": 7,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-17T03:37:45",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-17T03:37:45",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "pfunk",
+    "parent_permlink": "re-roadscape-2hhykq-steemd-20160511t170548013z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-pfunk-re-roadscape-2hhykq-steemd-20160511t170548013z-20160517t033745014z",
+    "post_id": 5789,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-pfunk-re-roadscape-2hhykq-steemd-20160511t170548013z-20160517t033745014z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "Aw, really? I'm using [Let's Encrypt](https://letsencrypt.org/) and I thought everything was looking fine! \n\nIIRC, the main issue with their certs is that they don't play nicely with Windows XP sometimes. Are you on XP?",
+    "body_length": 219,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 3,
+    "created": "2016-05-11T14:45:30",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-11T14:45:30",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "bob-the-poster",
+    "parent_permlink": "re-roadscape-2hhykq-steemd-20160511t143952355z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z",
+    "post_id": 3580,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "I can definitely make it sticky -- will try to do it this week. I wasn't sure if anyone was using that function!",
+    "body_length": 112,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-10T16:12:30",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-10T16:12:30",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "pfunk",
+    "parent_permlink": "can-we-have-advanced-mode-stick",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-pfunk-can-we-have-advanced-mode-stick-20160510t161229520z",
+    "post_id": 3229,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Can we have advanced mode stick?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@pfunk/can-we-have-advanced-mode-stick#@roadscape/re-pfunk-can-we-have-advanced-mode-stick-20160510t161229520z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "Will look into this today, thanks tuck!",
+    "body_length": 39,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd-issues",
+    "children": 0,
+    "created": "2016-05-05T16:05:42",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-05T16:05:42",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "the-amounts-shown-for-payout-on-a-post-are-doubled",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-tuck-fheman-the-amounts-shown-for-payout-on-a-post-are-doubled-20160505t160546118z",
+    "post_id": 2086,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "The amounts shown for payout on a post are doubled.",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd-issues/@tuck-fheman/the-amounts-shown-for-payout-on-a-post-are-doubled#@roadscape/re-tuck-fheman-the-amounts-shown-for-payout-on-a-post-are-doubled-20160505t160546118z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 0,
+        "rshares": "100384198005",
+        "voter": "tuck-fheman"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "This was at least in part due to a glitch on steemd.com. I was relying on only downvotes having a 'weight' of 0, but it appears that upvote weights decay until they reach 0 as well.. so I need to find better a better data source.",
+    "body_length": 229,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "random",
+    "children": 1,
+    "created": "2016-05-03T20:02:45",
+    "curator_payout_value": "0.016 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-03T20:02:45",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 100384198005,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "downvote-brigade-in-full-effect-today",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-tuck-fheman-downvote-brigade-in-full-effect-today-20160503t200244137z",
+    "post_id": 1592,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Downvote brigade in full effect today",
+    "title": "",
+    "total_payout_value": "0.016 HBD",
+    "url": "/random/@tuck-fheman/downvote-brigade-in-full-effect-today#@roadscape/re-tuck-fheman-downvote-brigade-in-full-effect-today-20160503t200244137z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 0,
+        "rshares": "100384198005",
+        "voter": "tuck-fheman"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "This is a steemd.com bug. I was using some numbers that I thought wouldn't change, but it looks as though the `weight` of each vote lowers over time. So a weight of 0 means it was either a negative vote OR an old vote. I will have to find another way to get this data... in the meantime, I've removed the thumbs-down icon.  The thumbs-up icon continues to represent upvotes, but only recent ones.",
+    "body_length": 396,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd-issues",
+    "children": 0,
+    "created": "2016-05-03T19:53:36",
+    "curator_payout_value": "0.016 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-03T19:53:36",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 100384198005,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "voting-results-reflecting-incorrectly",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-tuck-fheman-voting-results-reflecting-incorrectly-20160503t195337094z",
+    "post_id": 1586,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Voting results reflecting incorrectly?",
+    "title": "",
+    "total_payout_value": "0.016 HBD",
+    "url": "/steemd-issues/@tuck-fheman/voting-results-reflecting-incorrectly#@roadscape/re-tuck-fheman-voting-results-reflecting-incorrectly-20160503t195337094z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 0,
+    "beneficiaries": [],
+    "body": "- topics `/t/` `/topics/`",
+    "body_length": 25,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steem",
+    "children": 0,
+    "created": "2016-05-03T14:24:33",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-07T14:36:06",
+    "last_update": "2016-05-03T14:24:33",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "xeroc",
+    "parent_permlink": "steem-sub-steem-permlink-proposals",
+    "pending_payout_value": "0.000 HBD",
+    "percent_steem_dollars": 10000,
+    "permlink": "re-xeroc-steem-sub-steem-permlink-proposals-20160503t142436805z",
+    "post_id": 1471,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Can we find a better name for 'category'?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steem/@xeroc/steem-sub-steem-permlink-proposals#@roadscape/re-xeroc-steem-sub-steem-permlink-proposals-20160503t142436805z"
+  }
+]
diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.pat.json b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.pat.json
new file mode 100644
index 00000000..0d4f4ee2
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.pat.json
@@ -0,0 +1,333 @@
+[
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "I suspect this may be the same problem reported here: https://github.com/steemit/steem/issues/24",
+    "body_length": 96,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-26T21:12:51",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-19T15:47:42",
+    "last_update": "2016-05-26T21:12:51",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "cyrano.witness",
+    "parent_permlink": "http-rpc-api-bug",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-cyranowitness-http-rpc-api-bug-20160526t211251696z",
+    "post_id": 15258,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "HTTP RPC API bug?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@cyrano.witness/http-rpc-api-bug#@roadscape/re-cyranowitness-http-rpc-api-bug-20160526t211251696z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "Awesome page, well done!\n\n162.213.199.171:34191 (aka seed.steemd.com:34191) is run by me.",
+    "body_length": 89,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steem",
+    "children": 0,
+    "created": "2016-05-20T04:17:42",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T23:07:42",
+    "last_update": "2016-05-20T04:17:42",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "wackou",
+    "parent_permlink": "steem-nodes-live-status",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-wackou-steem-nodes-live-status-20160520t041742965z",
+    "post_id": 9543,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steem nodes live status",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steem/@wackou/steem-nodes-live-status#@roadscape/re-wackou-steem-nodes-live-status-20160520t041742965z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 5308158748996,
+        "rshares": 559198351,
+        "voter": "bob-the-poster"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "I believe I've corrected the mistake, could you please confirm that it's working as expected now?",
+    "body_length": 97,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 1,
+    "created": "2016-05-17T03:45:48",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 4,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-17T03:45:48",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 559198351,
+    "parent_author": "bob-the-poster",
+    "parent_permlink": "re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z-20160511t144842688z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-bob-the-poster-re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160516t224432214z",
+    "post_id": 7502,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-bob-the-poster-re-roadscape-re-bob-the-poster-re-roadscape-2hhykq-steemd-20160516t224432214z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "Done :)",
+    "body_length": 7,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-17T03:37:45",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-17T03:37:45",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "pfunk",
+    "parent_permlink": "re-roadscape-2hhykq-steemd-20160511t170548013z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-pfunk-re-roadscape-2hhykq-steemd-20160511t170548013z-20160517t033745014z",
+    "post_id": 7501,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-pfunk-re-roadscape-2hhykq-steemd-20160511t170548013z-20160517t033745014z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "Aw, really? I'm using [Let's Encrypt](https://letsencrypt.org/) and I thought everything was looking fine! \n\nIIRC, the main issue with their certs is that they don't play nicely with Windows XP sometimes. Are you on XP?",
+    "body_length": 219,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 3,
+    "created": "2016-05-11T14:45:30",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 2,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-21T15:28:42",
+    "last_update": "2016-05-11T14:45:30",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "bob-the-poster",
+    "parent_permlink": "re-roadscape-2hhykq-steemd-20160511t143952355z",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z",
+    "post_id": 4604,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Steemd.com update #2: content folding, UI & URL schema improvements",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@roadscape/2hhykq-steemd#@roadscape/re-bob-the-poster-re-roadscape-2hhykq-steemd-20160511t143952355z-20160511t144530887z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "I can definitely make it sticky -- will try to do it this week. I wasn't sure if anyone was using that function!",
+    "body_length": 112,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd",
+    "children": 0,
+    "created": "2016-05-10T16:12:30",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-10T16:12:30",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "pfunk",
+    "parent_permlink": "can-we-have-advanced-mode-stick",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-pfunk-can-we-have-advanced-mode-stick-20160510t161229520z",
+    "post_id": 4180,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Can we have advanced mode stick?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd/@pfunk/can-we-have-advanced-mode-stick#@roadscape/re-pfunk-can-we-have-advanced-mode-stick-20160510t161229520z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "Will look into this today, thanks tuck!",
+    "body_length": 39,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd-issues",
+    "children": 0,
+    "created": "2016-05-05T16:05:42",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-05T16:05:42",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "the-amounts-shown-for-payout-on-a-post-are-doubled",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-tuck-fheman-the-amounts-shown-for-payout-on-a-post-are-doubled-20160505t160546118z",
+    "post_id": 2751,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "The amounts shown for payout on a post are doubled.",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steemd-issues/@tuck-fheman/the-amounts-shown-for-payout-on-a-post-are-doubled#@roadscape/re-tuck-fheman-the-amounts-shown-for-payout-on-a-post-are-doubled-20160505t160546118z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 147478489309626,
+        "rshares": 100384198005,
+        "voter": "tuck-fheman"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "This was at least in part due to a glitch on steemd.com. I was relying on only downvotes having a 'weight' of 0, but it appears that upvote weights decay until they reach 0 as well.. so I need to find better a better data source.",
+    "body_length": 229,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "random",
+    "children": 1,
+    "created": "2016-05-03T20:02:45",
+    "curator_payout_value": "0.016 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-03T20:02:45",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 100384198005,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "downvote-brigade-in-full-effect-today",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-tuck-fheman-downvote-brigade-in-full-effect-today-20160503t200244137z",
+    "post_id": 2138,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Downvote brigade in full effect today",
+    "title": "",
+    "total_payout_value": "0.016 HBD",
+    "url": "/random/@tuck-fheman/downvote-brigade-in-full-effect-today#@roadscape/re-tuck-fheman-downvote-brigade-in-full-effect-today-20160503t200244137z"
+  },
+  {
+    "active_votes": [
+      {
+        "percent": "10000",
+        "reputation": 147478489309626,
+        "rshares": 100384198005,
+        "voter": "tuck-fheman"
+      }
+    ],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "This is a steemd.com bug. I was using some numbers that I thought wouldn't change, but it looks as though the `weight` of each vote lowers over time. So a weight of 0 means it was either a negative vote OR an old vote. I will have to find another way to get this data... in the meantime, I've removed the thumbs-down icon.  The thumbs-up icon continues to represent upvotes, but only recent ones.",
+    "body_length": 396,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steemd-issues",
+    "children": 0,
+    "created": "2016-05-03T19:53:36",
+    "curator_payout_value": "0.016 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-03T00:00:06",
+    "last_update": "2016-05-03T19:53:36",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 100384198005,
+    "parent_author": "tuck-fheman",
+    "parent_permlink": "voting-results-reflecting-incorrectly",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-tuck-fheman-voting-results-reflecting-incorrectly-20160503t195337094z",
+    "post_id": 2132,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Voting results reflecting incorrectly?",
+    "title": "",
+    "total_payout_value": "0.016 HBD",
+    "url": "/steemd-issues/@tuck-fheman/voting-results-reflecting-incorrectly#@roadscape/re-tuck-fheman-voting-results-reflecting-incorrectly-20160503t195337094z"
+  },
+  {
+    "active_votes": [],
+    "author": "roadscape",
+    "author_reputation": 9800209121307,
+    "beneficiaries": [],
+    "body": "- topics `/t/` `/topics/`",
+    "body_length": 25,
+    "cashout_time": "1969-12-31T23:59:59",
+    "category": "steem",
+    "children": 0,
+    "created": "2016-05-03T14:24:33",
+    "curator_payout_value": "0.000 HBD",
+    "depth": 1,
+    "json_metadata": "{}",
+    "last_payout": "2016-08-07T14:36:06",
+    "last_update": "2016-05-03T14:24:33",
+    "max_accepted_payout": "1000000.000 HBD",
+    "net_rshares": 0,
+    "parent_author": "xeroc",
+    "parent_permlink": "steem-sub-steem-permlink-proposals",
+    "pending_payout_value": "0.000 HBD",
+    "percent_hbd": 10000,
+    "permlink": "re-xeroc-steem-sub-steem-permlink-proposals-20160503t142436805z",
+    "post_id": 2011,
+    "promoted": "0.000 HBD",
+    "replies": [],
+    "root_title": "Can we find a better name for 'category'?",
+    "title": "",
+    "total_payout_value": "0.000 HBD",
+    "url": "/steem/@xeroc/steem-sub-steem-permlink-proposals#@roadscape/re-xeroc-steem-sub-steem-permlink-proposals-20160503t142436805z"
+  }
+]
diff --git a/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.tavern.yaml b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.tavern.yaml
new file mode 100644
index 00000000..90a7f9d9
--- /dev/null
+++ b/hivemind/tavern/condenser_api_patterns/get_discussions_by_comments/roadscape.tavern.yaml
@@ -0,0 +1,28 @@
+---
+  test_name: Hivemind condenser_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: "condenser_api.get_discussions_by_comments"
+          params: {"start_author":"roadscape","start_permlink":"steemd-update-3","limit":10}
+      response:
+        status_code: 200
+        verify_response_with:
+          function: validate_response:compare_response_with_pattern
+          extra_kwargs:
+            method: "roadscape"
+            directory: "condenser_api_patterns/get_discussions_by_comments"
\ No newline at end of file
-- 
GitLab