From 48f40205b1e702daf492fc845beed5f60da50bb0 Mon Sep 17 00:00:00 2001 From: chodak166 Date: Wed, 11 Feb 2026 19:05:02 +0100 Subject: [PATCH] Updated tavern tests --- tavern-tests/test_plans/decode_test.tavern.yaml | 8 ++++---- tavern-tests/test_plans/dictionary_test.tavern.yaml | 6 ++++-- tavern-tests/test_plans/version_test.tavern.yaml | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/tavern-tests/test_plans/decode_test.tavern.yaml b/tavern-tests/test_plans/decode_test.tavern.yaml index 9cc4ce1..13ebdf3 100644 --- a/tavern-tests/test_plans/decode_test.tavern.yaml +++ b/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: diff --git a/tavern-tests/test_plans/dictionary_test.tavern.yaml b/tavern-tests/test_plans/dictionary_test.tavern.yaml index 518a1c2..7669179 100644 --- a/tavern-tests/test_plans/dictionary_test.tavern.yaml +++ b/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 diff --git a/tavern-tests/test_plans/version_test.tavern.yaml b/tavern-tests/test_plans/version_test.tavern.yaml index 96f9f74..ef3408f 100644 --- a/tavern-tests/test_plans/version_test.tavern.yaml +++ b/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