2019-02-22 05:06:16 +08:00
|
|
|
<testcase>
|
2017-11-04 19:56:30 +08:00
|
|
|
# This test case is primarily meant to verify that parsing and adding the 100K
|
|
|
|
# files is a swift operation.
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP PUT
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
none
|
|
|
|
</server>
|
|
|
|
<name>
|
2019-07-21 01:14:00 +08:00
|
|
|
Attempt to upload 1000 files but fail immediately
|
2017-11-04 19:56:30 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-K log/cmd%TESTNUMBER --fail-early
|
2017-11-04 19:56:30 +08:00
|
|
|
</command>
|
|
|
|
<file name="log/upload-this">
|
|
|
|
XXXXXXXx
|
|
|
|
</file>
|
|
|
|
# generate the config file
|
|
|
|
<precheck>
|
2021-03-13 00:38:26 +08:00
|
|
|
perl -e 'for(1 .. 1000) { printf("upload-file=log/upload-this\nurl=htttttp://non-existing-host.haxx.se/upload/%TESTNUMBER\n", $_);}' > log/cmd%TESTNUMBER;
|
2017-11-04 19:56:30 +08:00
|
|
|
</precheck>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<errorcode>
|
|
|
|
1
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|