From: Amos Jeffries Date: Fri, 14 Aug 2009 04:55:30 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_0_STABLE19~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4674eaad7dd0f4006e1c95fadfe410210aee6e4b;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom Extended ntlm/negotiate_test to support helper local thinking time/delays --- diff --git a/test-suite/negotiate_test.sh b/test-suite/negotiate_test.sh index 1c2160edc5..49fafa6984 100755 --- a/test-suite/negotiate_test.sh +++ b/test-suite/negotiate_test.sh @@ -1,5 +1,11 @@ #!/bin/sh while read request; do +case $request in +*SLEEP=*) + sleep `echo $request | sed -e 's/.*SLEEP=\([^;]*\).*/\1/'` + request=`echo $request | sed -e 's/SLEEP=[^;]*;*//'` + ;; +esac data="`echo $request | cut -c4-`" blob="$$.$data-$challenge.`date +%s`" case $request in diff --git a/test-suite/ntlm_test.sh b/test-suite/ntlm_test.sh index d49a512995..b14f31657a 100755 --- a/test-suite/ntlm_test.sh +++ b/test-suite/ntlm_test.sh @@ -1,5 +1,11 @@ #!/bin/sh while read request; do +case $request in +*SLEEP=*) + sleep `echo $request | sed -e 's/.*SLEEP=\([^;]*\).*/\1/'` + request=`echo $request | sed -e 's/SLEEP=[^;]*;*//'` + ;; +esac data="`echo $request | cut -c4-`" blob="$$.$data-$challenge.`date +%s`" case $request in diff --git a/test-suite/run_negotiate_test.sh b/test-suite/run_negotiate_test.sh index 8e846bea2e..9015c5ade1 100755 --- a/test-suite/run_negotiate_test.sh +++ b/test-suite/run_negotiate_test.sh @@ -8,10 +8,11 @@ if [ $# -lt 1 ]; then exit 1 fi -echo "blob # partial message" -echo "USER=... # Success" -echo "BAD.. # Login failure" -echo "ERR.. # Failure" +echo "blob # partial message" +echo "SLEEP=.. # Delay. Can be combined with the others by using ;" +echo "USER=... # Success" +echo "BAD.. # Helper failure" +echo "ERR.. # Login Failure" while read auth; do echo "GET $url HTTP/1.0" diff --git a/test-suite/run_ntlm_test.sh b/test-suite/run_ntlm_test.sh index 14a263cc4d..eaf228d229 100755 --- a/test-suite/run_ntlm_test.sh +++ b/test-suite/run_ntlm_test.sh @@ -8,10 +8,11 @@ if [ $# -lt 1 ]; then exit 1 fi -echo "blob # partial message" -echo "USER=... # Success" -echo "BAD.. # Login failure" -echo "ERR.. # Failure" +echo "blob # partial message" +echo "SLEEP=.. # Delay. Can be combined with the others by using ;" +echo "USER=... # Success" +echo "BAD.. # Helper failure" +echo "ERR.. # Login Failure" while read auth; do echo "GET $url HTTP/1.0"