diff options
author | Chris Conroy <cconroy@gmail.com> | 2010-03-24 01:35:03 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-03-24 13:21:14 +0100 |
commit | 1ac168e576d8e78b58640e1e997249717529b482 (patch) | |
tree | 28e15363ef86b15292b5025ec05b8f66cb53cb9f /tests/data/test572 | |
parent | 50b51161c9ae3833489d2bf42b43fced46ab5587 (diff) | |
download | curl-1ac168e576d8e78b58640e1e997249717529b482.tar.gz |
Fix RTSP GET_PARAMETER empty and non-empty operation.
Test coverage included. Thanks to Massimo Callegari for the bug report
Diffstat (limited to 'tests/data/test572')
-rw-r--r-- | tests/data/test572 | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/tests/data/test572 b/tests/data/test572 new file mode 100644 index 000000000..c06e531fc --- /dev/null +++ b/tests/data/test572 @@ -0,0 +1,121 @@ +<testcase> + +#Informational +<info> +<keywords> +RTSP +GET_PARAMETER +</keywords> +</info> + +# Server-side +<reply> +<data1> +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +CSeq: 1 + +</data1> + +<data2> +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +Content-Type: text/parameters +Content-Length: 32 +Cseq: 2 + +scale=enormous +speed=ludicrous +</data2> + +<data3> +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +Cseq: 3 + +</data3> + +<data4> +RTSP/1.0 200 Okie Dokie +Server: RTSPD/libcurl-test +Session: getparams-test +Cseq: 4 +Content-Length: 37 + +packets_received: 1000 +jitter: 0.314 +</data4> +<data5> +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +CSeq: 5 +Curl-private: swsclose +Informational: Empty Options Response + +</data5> +</reply> + +# Client-Side +<client> +<server> +rtsp +</server> +<tool> +lib572 +</tool> + +<name> +RTSP GET_PARAMETER (Put/Heartbeat/Post) +</name> +<command> +rtsp://%HOSTIP:%RTSPPORT/572 +</command> +# file written before test command runs +<file name="log/file572.txt"> +scale +speed +</file> +</client> + +<verify> +<strip> +^If-Modified-Since:.* +</strip> +<protocol> +SETUP rtsp://%HOSTIP:%RTSPPORT/5720001 RTSP/1.0
+CSeq: 1
+Transport: Planes/Trains/Automobiles
+
+GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720002 RTSP/1.0
+CSeq: 2
+Session: getparams-test
+Content-Length: 12
+Content-Type: text/parameters
+
+scale +speed +GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720003 RTSP/1.0
+CSeq: 3
+Session: getparams-test
+
+GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720004 RTSP/1.0
+CSeq: 4
+Session: getparams-test
+Content-Length: 24
+Content-Type: text/parameters
+
+packets_received +jitter +OPTIONS rtsp://%HOSTIP:%RTSPPORT/5720005 RTSP/1.0
+CSeq: 5
+Session: getparams-test
+
+</protocol> +</verify> + +</testcase> + |