Fix Test Commenting

This commit is contained in:
Mitchell Krog 2019-06-23 16:08:49 +02:00
parent 4ef3ede96c
commit f62e131a7e
No known key found for this signature in database
GPG key ID: C243C388553EDE5D
2 changed files with 2 additions and 2 deletions

View file

@ -237,7 +237,7 @@ rm ${_inputdb3}
printf '%s\n' "$_start4" >> ${_tmpnginx4}
while IFS= read -r LINE
do
printf '\t"~*%s%s"\t\t%s\n' "(?:\b)${LINE}" "(?:\b)" "$_action4" >> ${_tmpnginx4}
printf '\t"~*%s%s"\t\t%s\n' "(?:\b)${LINE}" "(?:\b|)" "$_action4" >> ${_tmpnginx4}
#printf '\t"~*%s%s"\t\t%s\n' "(?:\b)${LINE}" "(?:|\s|,|\.|\b|\/)" "$_action4" >> ${_tmpnginx4}
#printf '\t"~*%s"\t\t%s\n' "${LINE}" "$_action4" >> ${_tmpnginx4}
done < ${_input4}

View file

@ -294,7 +294,7 @@ lines=$(cat ${file})
for line in ${lines}; do
if
curl -v -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
echo "${bold}${green}PASSED - ${green}${line}was ALLOWED"
echo "${bold}${green}PASSED - ${green}${line} was ALLOWED"
else
echo "${bold}${red}FAILED - ${red}${line} was BLOCKED"
fi