mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:53:33 +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
|
|
@ -62,7 +62,7 @@ http
|
|||
</server>
|
||||
# tool is what to use instead of 'curl'
|
||||
<tool>
|
||||
lib540
|
||||
lib%TESTNUMBER
|
||||
</tool>
|
||||
<features>
|
||||
!SSPI
|
||||
|
|
@ -73,32 +73,32 @@ proxy
|
|||
HTTP proxy auth Digest multi API re-using connection
|
||||
</name>
|
||||
<command>
|
||||
http://test.remote.example.com/path/540 http://%HOSTIP:%HTTPPORT silly:person custom.set.host.name
|
||||
http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT silly:person custom.set.host.name
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET http://test.remote.example.com/path/540 HTTP/1.1
|
||||
GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
||||
Host: custom.set.host.name
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://test.remote.example.com/path/540 HTTP/1.1
|
||||
GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
||||
Host: custom.set.host.name
|
||||
Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/540", response="ca507dcf189196b6a5374d3233042261"
|
||||
Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/%TESTNUMBER", response="ca507dcf189196b6a5374d3233042261"
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://test.remote.example.com/path/540 HTTP/1.1
|
||||
GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
||||
Host: custom.set.host.name
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET http://test.remote.example.com/path/540 HTTP/1.1
|
||||
GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
||||
Host: custom.set.host.name
|
||||
Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/540", response="ca507dcf189196b6a5374d3233042261"
|
||||
Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/%TESTNUMBER", response="ca507dcf189196b6a5374d3233042261"
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue