diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-03-12 17:38:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-03-19 15:57:21 +0100 |
commit | e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 (patch) | |
tree | 3d15e2bf1fa76e0d951d64edeccca6b70636e0ed /tests/data/test2024 | |
parent | 453ad35d15adf06bd1a141fb026214bc599b067f (diff) | |
download | curl-e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51.tar.gz |
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
Diffstat (limited to 'tests/data/test2024')
-rw-r--r-- | tests/data/test2024 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/data/test2024 b/tests/data/test2024 index c062b4c0f..d371e5dcb 100644 --- a/tests/data/test2024 +++ b/tests/data/test2024 @@ -133,7 +133,7 @@ CURL_GETHOSTNAME=curlhost LD_PRELOAD=%PWD/libtest/.libs/libhostname.so </setenv> <command> -http://%HOSTIP:%HTTPPORT/2024 basic digest +http://%HOSTIP:%HTTPPORT/%TESTNUMBER basic digest </command> <precheck> chkhostname curlhost @@ -143,29 +143,29 @@ chkhostname curlhost # Verify data after the test has been "shot" <verify> <protocol> -GET /20240100 HTTP/1.1
+GET /%TESTNUMBER0100 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
Accept: */*
-GET /20240200 HTTP/1.1
+GET /%TESTNUMBER0200 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
-Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/20240200", response="ed646c565f79e2dd9fa37cb5a621213c"
+Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/%TESTNUMBER0200", response="ed646c565f79e2dd9fa37cb5a621213c"
Accept: */*
-GET /20240300 HTTP/1.1
+GET /%TESTNUMBER0300 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
Accept: */*
-GET /20240400 HTTP/1.1
+GET /%TESTNUMBER0400 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
-Authorization: Digest username="testuser", realm="testrealm", nonce="2", uri="/20240400", response="9741ced8caacc6124770187b36f007c5"
+Authorization: Digest username="testuser", realm="testrealm", nonce="2", uri="/%TESTNUMBER0400", response="9741ced8caacc6124770187b36f007c5"
Accept: */*
-GET /20240500 HTTP/1.1
+GET /%TESTNUMBER0500 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
-Authorization: Digest username="testuser", realm="testrealm", nonce="3", uri="/20240500", response="5bc77ec8c2d443b27a1b55f1fd8fbb13"
+Authorization: Digest username="testuser", realm="testrealm", nonce="3", uri="/%TESTNUMBER0500", response="5bc77ec8c2d443b27a1b55f1fd8fbb13"
Accept: */*
</protocol> |