TEST Rate Limiting Build Test REF: #175

This commit is contained in:
Mitchell Krog 2019-06-26 09:21:32 +02:00
parent 784b2a2024
commit 1e70c3acca
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -266,7 +266,7 @@ file=${TRAVIS_BUILD_DIR}/.dev-tools/test_units/rate-limit-googlebot.list
lines=$(cat ${file})
for line in ${lines}; do
if
curl http://localhost:9000 -e "http://${line}" 2>&1 | grep -i 'Welcome'; then
curl -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
echo "${bold}${green}PASSED - ${red}${line} was ${bold}${green}ALLOWED"
else
echo "${bold}${red}FAILED - ${red}${line} was ${bold}${red}NOT ALLOWED"