gtg.tavern.yaml 793 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
---
  test_name: Hivemind condenser_api.get_content_replies patterns test

  marks:
    - patterntest # fat node was giving more data

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

  stages:
    - name: get_content_replies
      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_content_replies"
          params: ["gtg", "hello-world"]
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
27
28
            method: "gtg"
            directory: "condenser_api_patterns/get_content_replies"