| 1 |
<testcase> |
| 2 |
# This test case is primarily meant to verify that parsing and adding the 100K |
| 3 |
# files is a swift operation. |
| 4 |
<info> |
| 5 |
<keywords> |
| 6 |
HTTP |
| 7 |
HTTP PUT |
| 8 |
</keywords> |
| 9 |
</info> |
| 10 |
|
| 11 |
# |
| 12 |
# Server-side |
| 13 |
<reply> |
| 14 |
<data> |
| 15 |
</data> |
| 16 |
</reply> |
| 17 |
|
| 18 |
# Client-side |
| 19 |
<client> |
| 20 |
<server> |
| 21 |
none |
| 22 |
</server> |
| 23 |
<name> |
| 24 |
Attempt to upload 1000 files but fail immediately |
| 25 |
</name> |
| 26 |
<command> |
| 27 |
-K log/cmd1291 --fail-early |
| 28 |
</command> |
| 29 |
<file name="log/upload-this"> |
| 30 |
XXXXXXXx |
| 31 |
</file> |
| 32 |
# generate the config file |
| 33 |
<precheck> |
| 34 |
perl -e 'for(1 .. 1000) { printf("upload-file=log/upload-this\nurl=htttttp://non-existing-host.haxx.se/upload/1291\n", $_);}' > log/cmd1291; |
| 35 |
</precheck> |
| 36 |
</client> |
| 37 |
|
| 38 |
# Verify data after the test has been "shot" |
| 39 |
<verify> |
| 40 |
<errorcode> |
| 41 |
1 |
| 42 |
</errorcode> |
| 43 |
</verify> |
| 44 |
</testcase> |