From 8c5ad5a3740491a36047bf2ea33dd7f2201de205 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 31 Dec 2020 03:18:08 +0100 Subject: [PATCH] Add minor testing stuff --- tests/run_tests.sh | 2 ++ tests/tavern_tests/3.0.tags.tavern.yaml | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 7216b2b..15b1d18 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -68,4 +68,6 @@ for backup_file in core.log controller.log valgrind.log emgauwa-core.sqlite; do ln -sf $timestamp.$backup_file latest.$backup_file done +cat latest.valgrind.log + exit $test_result diff --git a/tests/tavern_tests/3.0.tags.tavern.yaml b/tests/tavern_tests/3.0.tags.tavern.yaml index 37734f8..9004442 100644 --- a/tests/tavern_tests/3.0.tags.tavern.yaml +++ b/tests/tavern_tests/3.0.tags.tavern.yaml @@ -157,3 +157,12 @@ stages: url: "http://localhost:5000/api/v1/tags/unused_tag_1" response: status_code: 404 + +- name: "[tags] get tags again" + request: + method: GET + url: "http://localhost:5000/api/v1/tags/" + response: + status_code: 200 + verify_response_with: + function: validate_tag:multiple