From 4674eaad7dd0f4006e1c95fadfe410210aee6e4b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 14 Aug 2009 16:55:30 +1200 Subject: [PATCH] Author: Henrik Nordstrom Extended ntlm/negotiate_test to support helper local thinking time/delays --- test-suite/negotiate_test.sh | 6 ++++++ test-suite/ntlm_test.sh | 6 ++++++ test-suite/run_negotiate_test.sh | 9 +++++---- test-suite/run_ntlm_test.sh | 9 +++++---- 4 files changed, 22 insertions(+), 8 deletions(-) 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" -- 2.47.2