1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 01:28:51 -05:00
curl/tests/data/test569
Daniel Stenberg e2b4df7b5e
tests: use %TESTNUMBER instead of fixed number
This makes the tests easier to copy and relocate to other test numbers
without having to update content.

Closes #6738
2021-03-19 15:57:21 +01:00

111 lines
1.7 KiB
Plaintext

<testcase>
#Informational
<info>
<keywords>
RTSP
SESSION_ID
</keywords>
</info>
# Server-side
<reply>
<data1>
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
CSeq: 1
Session: 00.+1-am-aSe55ion_id\$yes-i-am\$;timeout=60
</data1>
<data2>
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
CSeq: 2
</data2>
<data3>
RTSP/1.0 200 OK
Session: \$extraspaces ignore-this-part-------;foo=bar
CSeq: 3
Server: RTSPD/libcurl-test
</data3>
<data4>
RTSP/1.0 200 OK
CSeq: 4
Server: RTSPD/libcurl-test
</data4>
<data5>
RTSP/1.0 200 OK
Session: A
Server: RTSPD/libcurl-test
CSeq: 5
Informational: Single Character
</data5>
<data6>
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
Curl-Private: swsclose
CSeq: 6
</data6>
</reply>
# Client-Side
<client>
<server>
rtsp
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
RTSP Session ID parsing
</name>
<command>
rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER log/idfile%TESTNUMBER.txt
</command>
</client>
<verify>
<strip>
^If-Modified-Since:.*
</strip>
<protocol>
SETUP rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0001 RTSP/1.0
CSeq: 1
Transport: Fake/NotReal/JustATest;foo=baz
TEARDOWN rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0002 RTSP/1.0
CSeq: 2
Session: 00.+1-am-aSe55ion_id\$yes-i-am\$
SETUP rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0003 RTSP/1.0
CSeq: 3
Transport: Fake/NotReal/JustATest;foo=baz
TEARDOWN rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0004 RTSP/1.0
CSeq: 4
Session: \$extraspaces
SETUP rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0005 RTSP/1.0
CSeq: 5
Transport: Fake/NotReal/JustATest;foo=baz
TEARDOWN rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0006 RTSP/1.0
CSeq: 6
Session: A
</protocol>
<file name="log/idfile%TESTNUMBER.txt">
Got Session ID: [00.+1-am-aSe55ion_id\$yes-i-am\$]
Got Session ID: [\$extraspaces]
Got Session ID: [A]
</file>
</verify>
</testcase>