Skip to content

Commit

Permalink
Added test for multiple domains and DKIM. Ready for huan#88
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraziotin committed Feb 9, 2021
1 parent d6e52a9 commit 36aa8b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/simple-mail-forwarder.bats
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,13 @@
if [[ "$SKIP_TEST" == *"DKIM"* ]]; then
skip "This test will fail on docker build workflow"
fi
echo "Validating DKIM for $SMF_DOMAIN"
opendkim-testkey -d $SMF_DOMAIN -s default -vvv

if [ "$SMF_DKIM_ALL" != "" ]; then
cd /var/db/dkim/ && for domain in */ ; do
echo "Validating DKIM for ${domain::-1}"
opendkim-testkey -d ${domain::-1} -s default -vvv
done
fi
[ $? -eq 0 ]
}

0 comments on commit 36aa8b8

Please sign in to comment.