Browse Source

Updated tavern tests

develop-tavern
chodak166 3 months ago
parent
commit
48f40205b1
  1. 8
      tavern-tests/test_plans/decode_test.tavern.yaml
  2. 6
      tavern-tests/test_plans/dictionary_test.tavern.yaml
  3. 4
      tavern-tests/test_plans/version_test.tavern.yaml

8
tavern-tests/test_plans/decode_test.tavern.yaml

@ -7,16 +7,16 @@ stages:
- name: "Successful decode with valid encoded input"
request:
url: "http://{server_address}/{api_base}/major/decode/pl/hello"
url: "http://{server_address}/{api_base}/major/decode/pl/test"
method: GET
headers:
X-API-Key: "{api_key}"
response:
strict: False
strict: True
status_code: 200
json:
input: "hello"
result: !anystr
input: "test"
result: "101"
- name: "Missing authentication returns 401 error"
request:

6
tavern-tests/test_plans/dictionary_test.tavern.yaml

@ -15,14 +15,16 @@ stages:
strict: False
status_code: 200
json:
dictionaries: !anylist
dictionaries:
- name: !anystr
entry_count: !anyint
- name: "Missing authentication returns 401 error"
request:
url: "http://{server_address}/{api_base}/dicts"
method: GET
response:
strict: False
strict: True
status_code: 401
json:
error: !anystr

4
tavern-tests/test_plans/version_test.tavern.yaml

@ -11,10 +11,10 @@ stages:
headers:
X-API-Key: "{api_key}"
response:
strict: False
strict: True
status_code: 200
json:
name: !anystr
name: "phomnemic-server"
version: !anystr

Loading…
Cancel
Save