From 5d70a61b9460498558de2f16038a3687811b1622 Mon Sep 17 00:00:00 2001 From: Colin Hogben Date: Wed, 18 Jan 2012 22:19:57 +0100 Subject: Add two tests for telnet: URLs Add simple telnet tests which (ab)use the http server. The second test checks for an input file handling bug. --- tests/data/Makefile.am | 2 +- tests/data/test1326 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1327 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1326 create mode 100644 tests/data/test1327 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 00c28759f..85a6e4b2f 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -82,7 +82,7 @@ test1220 \ test1300 test1301 test1302 test1303 test1304 test1305 \ test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \ test1314 test1315 test1316 test1317 test1318 test1319 test1320 test1321 \ -test1325 \ +test1325 test1326 test1327 \ test2000 test2001 test2002 test2003 test2004 EXTRA_DIST = $(TESTCASES) DISABLED diff --git a/tests/data/test1326 b/tests/data/test1326 new file mode 100644 index 000000000..bb0cbaccf --- /dev/null +++ b/tests/data/test1326 @@ -0,0 +1,48 @@ + + + +TELNET +UPLOAD + + + +# +# Server-side + + +HTTP/1.1 200 swsclose + +moo + + + +# +# Client-side + + +http + + +telnet + + +TELNET to HTTP server + + +GET /we/want/1326 HTTP/1.0 + + + +telnet://%HOSTIP:%HTTPPORT + + + +# +# Verify data after the test has been "shot" + + +GET /we/want/1326 HTTP/1.0 + + + + diff --git a/tests/data/test1327 b/tests/data/test1327 new file mode 100644 index 000000000..a6e3d4fdc --- /dev/null +++ b/tests/data/test1327 @@ -0,0 +1,47 @@ + + + +TELNET +UPLOAD + + + +# +# Server-side + + + +# +# Client-side + + +http + + +telnet + + +TELNET check of upload with stdout redirected + + +GET /ignore/for/1327 HTTP/1.0 + + + +GET /we/want/1327 HTTP/1.0 + + + +telnet://%HOSTIP:%HTTPPORT -T log/1327.txt + + + +# +# Verify data after the test has been "shot" + + +GET /we/want/1327 HTTP/1.0 + + + + -- cgit v1.2.3