mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:13:37 +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
|
|
@ -53,7 +53,7 @@ http-proxy
|
|||
HTTP 1.0 CONNECT with proxytunnel and proxy+host Basic authentication
|
||||
</name>
|
||||
<command>
|
||||
http://test.80:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself
|
||||
http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself
|
||||
</command>
|
||||
<features>
|
||||
proxy
|
||||
|
|
@ -64,16 +64,16 @@ proxy
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<proxy>
|
||||
CONNECT test.80:%HTTPPORT HTTP/1.0
|
||||
Host: test.80:%HTTPPORT
|
||||
CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.0
|
||||
Host: test.%TESTNUMBER:%HTTPPORT
|
||||
Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
|
||||
User-Agent: curl/%VERSION
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
</proxy>
|
||||
<protocol>
|
||||
GET /we/want/that/page/80 HTTP/1.1
|
||||
Host: test.80:%HTTPPORT
|
||||
GET /we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||
Host: test.%TESTNUMBER:%HTTPPORT
|
||||
Authorization: Basic aWFtOm15c2VsZg==
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue