diff --git a/test/tests.bats b/test/tests.bats index 1193fcc4..6f775111 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -85,6 +85,11 @@ function count_processed_changes() { docker exec $containerName cat /var/log/supervisor/changedetector.log | grep "Change detected" | wc -l } +# this test must come first to reliably identify when to run setup_file +@test "first" { + skip 'Starting testing of letsencrypt SSL' +} + # # configuration checks # @@ -238,7 +243,7 @@ function count_processed_changes() { @test "checking smtp: delivers mail to existing account" { run docker exec mail /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)' | sed 's/.* to= 6 1 , orig_to= @@ -1624,3 +1629,7 @@ EOF run docker exec mail grep "Subject: Root Test Message" /var/mail/localhost.localdomain/user1/new/ -R assert_success } + +@test "last" { + # this test is only there to reliably mark the end for the teardown_file +}