mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:33:34 +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
|
|
@ -51,24 +51,24 @@ proxy
|
|||
HTTP with proxy-requiring-Basic to site-requiring-Digest
|
||||
</name>
|
||||
<command>
|
||||
http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
|
||||
http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
|
||||
GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
|
||||
Host: data.from.server.requiring.digest.hohoho.com
|
||||
Proxy-Authorization: Basic Zm9vOmJhcg==
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
|
||||
GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
|
||||
Host: data.from.server.requiring.digest.hohoho.com
|
||||
Proxy-Authorization: Basic Zm9vOmJhcg==
|
||||
Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/167", response="13c7c02a252cbe1c46d8669898a3be26"
|
||||
Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="13c7c02a252cbe1c46d8669898a3be26"
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue