Test Whitelisting

This commit is contained in:
Mitchell Krog 2019-06-22 13:35:04 +02:00
parent 230d7a2a19
commit a517008738
No known key found for this signature in database
GPG key ID: C243C388553EDE5D
6 changed files with 118 additions and 18 deletions

View file

@ -251,22 +251,6 @@ fi
}
run_curltest15
# *******************************************************
# Function Curl Test 16 - Test User Whitelist for "Nutch"
# *******************************************************
run_curltest16 () {
printf '\n%s\n%s\n%s\n\n' "#########################" "TESTING USER WHITELIST" "#########################"
if curl -v -A "Nutch" http://localhost:9000/index.php 2>&1 | grep -i 'Welcome'; then
echo "$(tput setaf 2)BAD BOT ALLOWED - TEST PASSED"
else
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
#exit 1
curl -v -A "Nutch" http://localhost:9000/index.php 2>&1
fi
}
run_curltest16
echo "Tests Completed"