no_results.tavern.yaml 840 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
  test_name: Hivemind condenser_api.get_post_discussions_by_payout no results test

  marks:
    - patterntest

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

  stages:
    - name: get_post_discussions_by_payout no results
      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_post_discussions_by_payout"
          params: {"tag":"non_existing_tag","limit":20}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "no_results"
            directory: "condenser_api_patterns/get_post_discussions_by_payout"