From a466b315742e958a06aee6a2e92f0de5bd22c635 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 Jun 2007 13:50:59 +0000 Subject: Daniel Black's test suite fixes and initial test cases for SOCKS4/5 using openssh --- tests/data/Makefile.am | 6 +++--- tests/data/test700 | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test701 | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test702 | 39 ++++++++++++++++++++++++++++++++++ tests/data/test704 | 42 +++++++++++++++++++++++++++++++++++++ tests/data/test705 | 43 +++++++++++++++++++++++++++++++++++++ 6 files changed, 241 insertions(+), 3 deletions(-) create mode 100644 tests/data/test700 create mode 100644 tests/data/test701 create mode 100644 tests/data/test702 create mode 100644 tests/data/test704 create mode 100644 tests/data/test705 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index e418d41e4..6262dac6b 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -28,8 +28,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test194 test195 test196 test197 test198 test515 test516 test517 test518 \ test210 test211 test212 test220 test221 test222 test223 test224 test206 \ test207 test208 test209 test213 test240 test241 test242 test519 test214 \ - test215 test216 test217 test218 test199 test225 test226 test227 \ - test228 test229 test233 test234 test235 test236 test520 \ + test215 test216 test217 test218 test199 test225 test226 test227 \ + test228 test229 test233 test234 test235 test236 test520 \ test237 test238 test239 test243 test245 test246 test247 test248 test249 \ test250 test251 test252 test253 test254 test255 test521 test522 test523 \ test256 test257 test258 test259 test260 test261 test262 test263 test264 \ @@ -41,4 +41,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test603 test401 test402 test290 test291 test292 test293 test403 test404 \ test405 test604 test605 test606 test607 test608 test609 test294 test295 \ test296 test297 test298 test610 test611 test612 test406 test407 test408 \ - test409 test613 test614 + test409 test613 test614 test700 test701 test702 test704 test705 diff --git a/tests/data/test700 b/tests/data/test700 new file mode 100644 index 000000000..196fe4ed8 --- /dev/null +++ b/tests/data/test700 @@ -0,0 +1,57 @@ + + + +HTTP +HTTP GET +SOCKS4 + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: text/html +Funny-head: yesyes + +-foo- + + + +# +# Client-side + + +http +socks4 + + +HTTP GET via SOCK4 proxy + + +--socks4 %HOSTIP:%SOCKSPORT http://%HOSTIP:%HTTPPORT/700 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /700 HTTP/1.1 +Host: 127.0.0.1:%HTTPPORT +Accept: */* + + + + diff --git a/tests/data/test701 b/tests/data/test701 new file mode 100644 index 000000000..19fa933c0 --- /dev/null +++ b/tests/data/test701 @@ -0,0 +1,57 @@ + + + +HTTP +HTTP GET +SOCKS5 + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: text/html +Funny-head: yesyes + +-foo- + + + +# +# Client-side + + +http +socks5 + + +HTTP GET via SOCK5 proxy + + +--socks5 %HOSTIP:%SOCKSPORT http://%HOSTIP:%HTTPPORT/701 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /701 HTTP/1.1 +Host: 127.0.0.1:%HTTPPORT +Accept: */* + + + + diff --git a/tests/data/test702 b/tests/data/test702 new file mode 100644 index 000000000..65564f840 --- /dev/null +++ b/tests/data/test702 @@ -0,0 +1,39 @@ +#based off 19 + + + +HTTP +SOCKS4 +connect to non-listen +FAILURE + + +# Server-side + + + + + +# Client-side + + +socks4 + + +http + + +attempt connect to non-listening socket via sock4 proxy + + +--socks4 %HOSTIP:%SOCKSPORT %HOSTIP:60000 + + + +# Verify data after the test has been "shot" + + +7 + + + diff --git a/tests/data/test704 b/tests/data/test704 new file mode 100644 index 000000000..76792640d --- /dev/null +++ b/tests/data/test704 @@ -0,0 +1,42 @@ +#based off 19 + + + +HTTP +SOCKS4 fail +connect to non-listen +FAILURE + + +# Server-side + + + + + +# Client-side + + +http + + +socks4 + + +http + + +attempt connect to non-listening sock4 proxy + + +--socks4 %HOSTIP:%SOCKSPORT %HOSTIP:60000 + + + +# Verify data after the test has been "shot" + + +7 + + + diff --git a/tests/data/test705 b/tests/data/test705 new file mode 100644 index 000000000..72e5b0b3b --- /dev/null +++ b/tests/data/test705 @@ -0,0 +1,43 @@ +#based off 19 + + + +HTTP +SOCKS5 fail +connect to non-listen +FAILURE + + +# Server-side + + + + + +# Client-side + + +http + + +http + + +attempt connect to non-listening sock5 proxy + + +--socks5 %HOSTIP:%SOCKSPORT %HOSTIP:60000 + + + + +sock5 + + +# Verify data after the test has been "shot" + + +7 + + + -- cgit v1.2.3