ADD time check to Test Rate Limiting REF: #175

This commit is contained in:
Mitchell Krog 2019-06-26 10:19:20 +02:00
parent 3c19913445
commit 17e02bdad8
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 -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
time 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"