From: Amos Jeffries Date: Wed, 12 Aug 2009 11:50:13 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_1_0_14~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec0591f176491eda86cad0a331d346b88e3baf0c;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"