Run Whitelisting Test

This commit is contained in:
Mitchell Krog 2019-06-22 16:05:54 +02:00
parent cbd38e450e
commit 5307e60640
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -23,6 +23,7 @@ sudo cp ${TRAVIS_BUILD_DIR}/.dev-tools/blacklist-user-agents.conf /etc/nginx/bot
echo "Reloading Nginx"
sudo nginx -t && sudo nginx -s reload
sleep 30s
# *******************************************************
# Function Curl Test 16 - Test User Whitelist for "Nutch"
@ -35,7 +36,7 @@ if curl -v -A "Nutch" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
else
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
#exit 1
curl -v -A "Nutch" http://localhost:9000/index.php 2>&1
curl -v -A "Nutch" http://localhost:9000 2>&1
fi
}
run_curltest1
@ -47,7 +48,7 @@ if curl -v -A "Nutch" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
else
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
#exit 1
curl -v -A "Nutch" http://localhost:9000/index.php 2>&1
curl -v -A "Nutch" http://localhost:9000 2>&1
fi
}
run_curltest2