mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
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
This commit is contained in:
parent
453ad35d15
commit
e2b4df7b5e
1292 changed files with 4386 additions and 4389 deletions
|
|
@ -16,7 +16,7 @@ followlocation
|
|||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 302 OK
|
||||
Location: http://example.net/there/it/is/../../tes t case=/6630002? yes no
|
||||
Location: http://example.net/there/it/is/../../tes t case=/%TESTNUMBER0002? yes no
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ body
|
|||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 302 OK
|
||||
Location: http://example.net/there/it/is/../../tes t case=/6630002? yes no
|
||||
Location: http://example.net/there/it/is/../../tes t case=/%TESTNUMBER0002? yes no
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ http
|
|||
HTTP redirect with dotdots and whitespaces in absolute Location: URL
|
||||
</name>
|
||||
<command>
|
||||
http://example.com/please/../gimme/663?foobar#hello -L -x http://%HOSTIP:%HTTPPORT
|
||||
http://example.com/please/../gimme/%TESTNUMBER?foobar#hello -L -x http://%HOSTIP:%HTTPPORT
|
||||
</command>
|
||||
<features>
|
||||
proxy
|
||||
|
|
@ -65,13 +65,13 @@ proxy
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET http://example.com/gimme/663?foobar HTTP/1.1
|
||||
GET http://example.com/gimme/%TESTNUMBER?foobar HTTP/1.1
|
||||
Host: example.com
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://example.net/there/tes%20t%20case=/6630002?+yes+no HTTP/1.1
|
||||
GET http://example.net/there/tes%20t%20case=/%TESTNUMBER0002?+yes+no HTTP/1.1
|
||||
Host: example.net
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue