mirror of
https://github.com/curl/curl.git
synced 2026-08-26 02:03: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
|
|
@ -17,7 +17,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/2330002
|
||||
Location: http://goto.second.host.now/%TESTNUMBER0002
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
|
||||
|
|
@ -40,7 +40,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/2330002
|
||||
Location: http://goto.second.host.now/%TESTNUMBER0002
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ http
|
|||
HTTP, proxy, site+proxy auth and Location: to new host
|
||||
</name>
|
||||
<command>
|
||||
http://first.host.it.is/we/want/that/page/233 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location
|
||||
http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location
|
||||
</command>
|
||||
<features>
|
||||
proxy
|
||||
|
|
@ -76,7 +76,7 @@ proxy
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET http://first.host.it.is/we/want/that/page/233 HTTP/1.1
|
||||
GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||
Host: first.host.it.is
|
||||
Proxy-Authorization: Basic dGVzdGluZzp0aGlz
|
||||
Authorization: Basic aWFtOm15c2VsZg==
|
||||
|
|
@ -84,7 +84,7 @@ User-Agent: curl/%VERSION
|
|||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://goto.second.host.now/2330002 HTTP/1.1
|
||||
GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1
|
||||
Host: goto.second.host.now
|
||||
Proxy-Authorization: Basic dGVzdGluZzp0aGlz
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue