From f3b407120941c85b0bd477ec731515894a145b15 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 31 Jul 2008 02:38:51 +0000 Subject: [PATCH] Added test of IPv6 scope handling --- tests/data/Makefile.am | 3 +- tests/data/test1056 | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1056 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index df25a72..e6df0cc 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -54,7 +54,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test556 test1031 test628 test629 test630 test631 test632 test1032 \ test1033 test539 test1034 test1035 test1036 test1037 test1038 test1039 \ test1040 test1041 test1042 test1043 test1044 test1045 test1046 test1047 \ - test1048 test1049 test1050 test1051 test1052 test1053 test1054 test1055 + test1048 test1049 test1050 test1051 test1052 test1053 test1054 test1055 \ + test1056 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1056 b/tests/data/test1056 new file mode 100644 index 0000000..52b0136 --- /dev/null +++ b/tests/data/test1056 @@ -0,0 +1,81 @@ + + + +HTTP +HTTP GET +followlocation +IPv6 + + + +# +# Server-side + + +HTTP/1.1 302 OK swsclose +Location: http://[::1%259999]:8994/moo/10560002 +Date: Thu, 31 Jul 2008 14:49:00 GMT +Connection: close + + + +HTTP/1.1 200 OK swsclose +Date: Thu, 31 Jul 2008 14:49:00 GMT +Connection: close + +body + + +HTTP/1.1 302 OK swsclose +Location: http://[::1%259999]:8994/moo/10560002 +Date: Thu, 31 Jul 2008 14:49:00 GMT +Connection: close + +HTTP/1.1 200 OK swsclose +Date: Thu, 31 Jul 2008 14:49:00 GMT +Connection: close + +body + + + +# +# Client-side + + +ipv6 + + +http +http-ipv6 + + +HTTP follow redirect from IPv4 to IPv6 with scope + + +http://%HOSTIP:%HTTPPORT/we/are/all/twits/1056 -L + +# The data section doesn't do variable substitution, so we must assert this + +perl -e "print 'Test requires default test server host and port' if ( '%HOST6IP' ne '[::1]' || '%HTTP6PORT' ne '8994' );" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /we/are/all/twits/1056 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +GET /moo/10560002 HTTP/1.1 +Host: %HOST6IP:%HTTP6PORT +Accept: */* + + + + -- 2.7.4