adjust test to use new script output from openDKIM

This commit is contained in:
Georg Lauterbach 2021-02-18 13:11:45 +01:00
parent 27f6ad73cf
commit f3f38db0f9
No known key found for this signature in database
GPG key ID: 2FDC58699AF121C6
2 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,7 @@ DOMAINS=
function __usage
{
echo -e "\e[35mOPEN-DKIM\e[31m(\e[93m8\e[31m)
printf "\e[35mOPEN-DKIM\e[31m(\e[93m8\e[31m)
\e[38;5;214mNAME\e[39m
open-dkim - configure DomainKeys Identified Mail (DKIM)
@ -44,6 +44,7 @@ function __usage
\e[38;5;214mEXIT STATUS\e[39m
Exit status is 0 if command was successful. If wrong arguments are provided or arguments contain
errors, the script will exit early with exit status 2.
"
}

View file

@ -1127,10 +1127,10 @@ EOF
assert_failure
}
@test "checking setup.sh: setup.sh dkim help" {
run ./setup.sh -c mail dkim help
@test "checking setup.sh: setup.sh config dkim help" {
run ./setup.sh -c mail config dkim help
assert_success
assert_line --index 1 "Generate DKIM Configuration"
assert_line --index 2 " open-dkim - configure DomainKeys Identified Mail (DKIM)"
}
# debug