---
  test_name: Hivemind bridge_api.get_ranked_posts maximum limit patterns test

  marks:
    - patterntest
    - failing
    - xfail # blacklists - we should most likely setup service for blacklists that will be unchanging and used by both hive-3 and CI,
            # otherwise even if we correctly handle blacklists those might fail when situation changes or external service stops working

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

  stages:
    - name: bridge_api.get_ranked_posts maximum limit patterns test
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "bridge.get_ranked_posts"
          params: {"sort":"created","tag":"","observer":"alice", "limit": 100}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "max_limit"
            directory: "bridge_api_patterns/get_ranked_posts/created"
