diff options
author | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2007-10-25 19:40:05 +0000 |
---|---|---|
committer | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2007-10-25 19:40:05 +0000 |
commit | 0678a51d3b8be8b24e475929fae11b95d2258da4 (patch) | |
tree | ce61134dcc831ab685b27300e2d675f1f9c2344c /tests/data | |
parent | b7dd186d3608ae82de103f4e25982047abb816be (diff) |
Allow test server to handle binary POSTs.
Tests 35, 544 545 added: binary data POSTs.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.am | 3 | ||||
-rw-r--r-- | tests/data/test35 | bin | 0 -> 743 bytes | |||
-rw-r--r-- | tests/data/test544 | 49 | ||||
-rw-r--r-- | tests/data/test545 | bin | 0 -> 748 bytes |
4 files changed, 51 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 14a511bf3..f802b1ac9 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -45,7 +45,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test706 test707 test350 test351 test352 test353 test289 test540 test354 \ test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 \ test615 test1007 test541 test1010 test1011 test1012 test542 test543 \ - test536 test1008 test1009 test2000 test2001 test2002 test2003 + test536 test1008 test1009 test2000 test2001 test2002 test2003 test35 \ + test544 test545 filecheck: @mkdir test-place; \ diff --git a/tests/data/test35 b/tests/data/test35 Binary files differnew file mode 100644 index 000000000..0f322f9e3 --- /dev/null +++ b/tests/data/test35 diff --git a/tests/data/test544 b/tests/data/test544 new file mode 100644 index 000000000..2fa4edb1b --- /dev/null +++ b/tests/data/test544 @@ -0,0 +1,49 @@ +<testcase> +# +# Server-side +<reply> +<data mode="text"> +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 3 + +OK +</data> +</reply> + +# Client-side +<client> +<server> +http +</server> +# tool is what to use instead of 'curl' +<tool> +lib544 +</tool> + + <name> +HTTP POST text data using CURLOPT_COPYPOSTFIELDS + </name> + <command> +http://%HOSTIP:%HTTPPORT/544 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol nonewline="yes"> +POST /544 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+Content-Length: 4
+Content-Type: application/x-www-form-urlencoded
+
+This +</protocol> +</verify> +</testcase> diff --git a/tests/data/test545 b/tests/data/test545 Binary files differnew file mode 100644 index 000000000..66ebb6119 --- /dev/null +++ b/tests/data/test545 |