---
  test_name: Hivemind tags_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: "tags_api.get_discussions_by_created"
          params: {"tag":"polska","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "tag_limit"
            directory: "tags_api_patterns/get_discussions_by_created"