mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-16 18:19:48 +00:00
[MASTER][BETA] All Tests to Fail Builds
This commit is contained in:
parent
ef592237a8
commit
d4e562c760
16 changed files with 81 additions and 115 deletions
|
@ -81,6 +81,7 @@ if curl http://localhost:9000 2>&1 | grep -i '(52)'; then
|
|||
echo "${bold}${green}PASSED - ${bold}${red}blacklist own ip is WORKING"
|
||||
else
|
||||
echo "${bold}${red}FAILED - blacklist own ip is NOT working"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -90,6 +91,7 @@ if curl http://localhost:9000 2>&1 | grep -i 'Welcome'; then
|
|||
else
|
||||
echo "${bold}${red}FAILED - whitelist own ip is NOT working"
|
||||
curl http://localhost:9000
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue