Skip to content

Commit

Permalink
expanded test to test for false positives as well #55
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 25, 2017
1 parent 6e3bf04 commit ffb61a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clam/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,15 @@ sleep 5
#simple curl test:
curl -f -H "REMOTE_USER: test" http://$HOSTNAME:8080/
if [ $? -ne 0 ]; then
echo "ERROR: Forwarded authentication failure" >&2
echo "ERROR: Forwarded authentication failure (false negative)" >&2
GOOD=0
fi

curl -f http://$HOSTNAME:8080/
if [ $? -eq 0 ]; then
echo "ERROR: Forwarded authentication failure (false positive)" >&2
GOOD=0
fi

echo "Stopping clam service" >&2
kill $(ps aux | grep 'clamservice' | awk '{print $2}') 2>/dev/null
Expand Down

0 comments on commit ffb61a4

Please sign in to comment.