From a90e043e4574ac65fe9df245005929337303703b Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Tue, 22 Sep 2020 01:09:17 +0200 Subject: [PATCH] Fix failing tests due to old paths --- test/tests.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tests.bats b/test/tests.bats index 6f775111..8373a6db 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -1245,7 +1245,7 @@ EOF run ./setup.sh -c mail email add setup_email_add@example.com test_password assert_success - value=$(cat ./test/config/postfix-accounts.cf | grep setup_email_add@example.com | awk -F '|' '{print $1}') + value=$(cat $(private_config_path mail)/postfix-accounts.cf | grep setup_email_add@example.com | awk -F '|' '{print $1}') [ "$value" = "setup_email_add@example.com" ] assert_success @@ -1280,14 +1280,14 @@ EOF run ./setup.sh -c mail email add lorem@impsum.org test_test assert_success - initialpass=$(cat ./test/config/postfix-accounts.cf | grep lorem@impsum.org | awk -F '|' '{print $2}') + initialpass=$(cat $(private_config_path mail)/postfix-accounts.cf | grep lorem@impsum.org | awk -F '|' '{print $2}') [ "$initialpass" != "" ] assert_success run ./setup.sh -c mail email update lorem@impsum.org my password assert_success - updatepass=$(cat ./test/config/postfix-accounts.cf | grep lorem@impsum.org | awk -F '|' '{print $2}') + updatepass=$(cat $(private_config_path mail)/postfix-accounts.cf | grep lorem@impsum.org | awk -F '|' '{print $2}') [ "$updatepass" != "" ] assert_success @@ -1310,7 +1310,7 @@ EOF # # run docker exec mail ls /var/mail/impsum.org/lorem # assert_failure - run grep lorem@impsum.org ./test/config/postfix-accounts.cf + run grep lorem@impsum.org $(private_config_path mail)/postfix-accounts.cf assert_failure }