Commit c41d959e authored by Yang Tse's avatar Yang Tse
Browse files

tests 1364 to 1393: several -o filename -J -i -D combinations for HTTP and FTP

parent 43079161
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -25,3 +25,23 @@
1338
1339
#
1370
1371
1385
1393
#
1368
1369
1379
1380
1381
1382
1383
1384
1387
1388
1389
1390
1391
1392
#
+4 −1
Original line number Diff line number Diff line
@@ -87,7 +87,10 @@ test1331 test1332 test1333 test1334 test1335 test1336 test1337 test1338 \
test1339 test1340 test1341 test1342 test1343 test1344 test1345 test1346 \
test1347 test1348 test1349 test1350 test1351 test1352 test1353 test1354 \
test1355 test1356 test1357 test1358 test1359 test1360 test1361 test1362 \
test1363 \
test1363 test1364 test1365 test1366 test1367 test1368 test1369 test1370 \
test1371 test1372 test1373 test1374 test1375 test1376 test1377 test1378 \
test1379 test1380 test1381 test1382 test1383 test1384 test1385 test1386 \
test1387 test1388 test1389 test1390 test1391 test1392 test1393 \
test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
test2000 test2001 test2002 test2003 test2004

tests/data/test1364

0 → 100644
+71 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html

12345
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET -o fname without Content-Disposition, -D file
</name>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/1364 -o log/outfile1364 -D log/heads1364
</command>
<postcheck>
perl %SRCDIR/libtest/notexists.pl log/1364
</postcheck>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /1364 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*

</protocol>

<file1 name="log/outfile1364">
12345
</file1>

<file2 name="log/heads1364">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html

</file2>

<file3 name="log/stdout1364">
</file3>

</verify>
</testcase>

tests/data/test1365

0 → 100644
+68 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html

12345
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET -o fname without Content-Disposition, -D stdout
</name>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/1365 -o log/outfile1365 -D -
</command>
<postcheck>
perl %SRCDIR/libtest/notexists.pl log/1365
</postcheck>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /1365 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*

</protocol>

<file1 name="log/outfile1365">
12345
</file1>

<file2 name="log/stdout1365">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html

</file2>

</verify>
</testcase>

tests/data/test1366

0 → 100644
+73 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html
Content-Disposition: filename=name1366; charset=funny; option=strange

12345
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET -o fname and Content-Disposition, -D file
</name>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/1366 -o log/outfile1366 -D log/heads1366
</command>
<postcheck>
perl %SRCDIR/libtest/notexists.pl log/1366 log/name1366
</postcheck>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /1366 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*

</protocol>

<file1 name="log/outfile1366">
12345
</file1>

<file2 name="log/heads1366">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html
Content-Disposition: filename=name1366; charset=funny; option=strange

</file2>

<file3 name="log/stdout1366">
</file3>

</verify>
</testcase>
Loading