From 2db07ece64c1e6ed8514d7afd5b511b4b2da032f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:20:54 +0100 Subject: [PATCH] Add test to check if log contains warnings --- tests/tests.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tests.bats b/tests/tests.bats index ca2e987..1f88f04 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -91,3 +91,8 @@ load 'bats/bats-assert/load' run bash -c "sudo docker-compose exec $batsContainerName /bin/bash -c \"/entrypoint.bash check\" | grep 'deprecated' -A 3" assert_failure } + +@test "Should not have warnings in log" { + run bash -c "sudo docker-compose logs $batsContainerName | grep -E \"warn\"" + assert_failure +}