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:
Daniel Stenberg 2021-03-12 17:38:26 +01:00
parent 453ad35d15
commit e2b4df7b5e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
1292 changed files with 4386 additions and 4389 deletions

View file

@ -12,7 +12,7 @@ followlocation
<data>
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
@ -21,37 +21,37 @@ Redirect to the same URL again!
<datacheck>
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
HTTP/1.1 301 This is a weirdo text message
Server: test-server/fake
Location: data/reply/25
Location: data/reply/%TESTNUMBER
Content-Length: 32
Connection: close
@ -67,39 +67,39 @@ http
looping HTTP Location: following with --max-redirs
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/25 -L --max-redirs 5
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L --max-redirs 5
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
GET /want/25 HTTP/1.1
GET /want/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /want/data/reply/25 HTTP/1.1
GET /want/data/reply/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /want/data/reply/data/reply/25 HTTP/1.1
GET /want/data/reply/data/reply/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /want/data/reply/data/reply/data/reply/25 HTTP/1.1
GET /want/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
GET /want/data/reply/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*