gtg.tavern.yaml 1.06 KB
Newer Older
1
2
3
4
---
  test_name: Hivemind condenser_api.get_discussions_by_feed patterns test

  marks:
5
6
    - 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)
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

  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"
22
          params: {"tag":"gtg","limit":1}
23
24
25
26
27
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
28
            method: "gtg"
29
            directory: "condenser_api_patterns/get_discussions_by_feed"