---
  test_name: Hivemind condenser_api.get_discussions_by_feed patterns test

  marks:
    - patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
                  # there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)

  includes:
    - !include ../../common.yaml

  stages:
    - name: get_discussions_by_feed
      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_feed"
          params: {"tag":"good-karma","start_author":"jl777","start_permlink":"300-btc-open-market-purchase-of-steem-spikes-price-to-00324","limit":10}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "good-karma"
            directory: "condenser_api_patterns/get_discussions_by_feed"