mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 15:38:43 +00:00
Add fail2ban unit test
This commit is contained in:
@@ -35,6 +35,7 @@ matrix:
|
||||
#- sed -i "s/INSTALL_MAILER=false/INSTALL_MAILER=true/g" .env
|
||||
#- sed -i "s/INSTALL_SPFDKIM=false/INSTALL_SPFDKIM=true/g" .env
|
||||
- sed -i "s/SENDER_DOMAIN=\"example.com\"/SENDER_DOMAIN=\"localhost.localhost\"/g" .env
|
||||
- sed -i "s/INSTALL_FAIL2BAN=false/INSTALL_FAIL2BAN=true/g" .env
|
||||
# Run the source through ShellCheck (http://www.shellcheck.net).
|
||||
- shellcheck -s bash -x install.sh
|
||||
- shellcheck -s bash -x remove.sh
|
||||
|
||||
@@ -118,5 +118,13 @@ testEqualityInstallMySQL()
|
||||
# assertEquals "/usr/sbin/dovecot" "${dovecot_bin}"
|
||||
#}
|
||||
|
||||
testEqualityInstallFail2ban()
|
||||
{
|
||||
. scripts/install_fail2ban.sh
|
||||
|
||||
fail2ban_bin=$(command -v fail2ban-server)
|
||||
assertEquals "/usr/local/bin/fail2ban-server" "${fail2ban_bin}"
|
||||
}
|
||||
|
||||
# load shunit2
|
||||
. /usr/local/bin/shunit2
|
||||
|
||||
Reference in New Issue
Block a user