test_database_api_patterns.tavern.yaml 1.56 KB
Newer Older
1 2 3 4 5 6
---
  test_name: Hivemind database_api.list_comments patterns test

  marks:
    - patterntest
    - failing
7
    - xfail
8 9 10 11 12 13 14

  includes:
    - !include common.yaml

  stages:
    - name: list_comments
      request:
15
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "database_api.list_comments"
          params: {"start":["steemit","firstpost"], "limit":10, "order":"by_permlink"}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "list_comments"
            directory: "database_api_patterns"

---
  test_name: Hivemind database_api.find_comments patterns test

  marks:
    - patterntest
    - failing
38
    - xfail
39 40 41 42 43 44 45

  includes:
    - !include common.yaml

  stages:
    - name: find_comments
      request:
46
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "database_api.find_comments"
          params: {"start":[["steemit","firstpost"]], "limit":10, "order":"by_author"}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "find_comments"
            directory: "database_api_patterns"