mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:13:32 +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 @@ Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/3170002
|
||||
Location: http://goto.second.host.now/%TESTNUMBER0002
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/3170002
|
||||
Location: http://goto.second.host.now/%TESTNUMBER0002
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ http
|
|||
HTTP with custom Cookie: and redirect to new host
|
||||
</name>
|
||||
<command>
|
||||
http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --location
|
||||
http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --location
|
||||
</command>
|
||||
<features>
|
||||
proxy
|
||||
|
|
@ -75,14 +75,14 @@ proxy
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET http://first.host.it.is/we/want/that/page/317 HTTP/1.1
|
||||
GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||
Host: first.host.it.is
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
Cookie: test=yes
|
||||
|
||||
GET http://goto.second.host.now/3170002 HTTP/1.1
|
||||
GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1
|
||||
Host: goto.second.host.now
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue