Test New Curl Test Format on Test Unit REF: #264

This commit is contained in:
Mitchell Krog 2019-06-22 09:28:27 +02:00
parent 9f52c83202
commit 117e1e8e24
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -311,7 +311,7 @@ run_curltest14
run_curltest15 () { run_curltest15 () {
printf '\n%s\n%s\n%s\n\n' "############################" "TESTING FALSE POSITIVE CASES" "############################" printf '\n%s\n%s\n%s\n\n' "############################" "TESTING FALSE POSITIVE CASES" "############################"
if grep -i 'Welcome' | curl -v -A "Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0" http://localhost:9000/index.php 2>&1; then if curl -v -A "Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0" http://localhost:9000/index.php 2>&1 | grep -i 'Welcome'; then
echo "$(tput setaf 2)NO FALSE POSITIVE - TEST PASSED" echo "$(tput setaf 2)NO FALSE POSITIVE - TEST PASSED"
else else
echo "$(tput setaf 1)FALSE POSITIVE - TEST FAILED" echo "$(tput setaf 1)FALSE POSITIVE - TEST FAILED"