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/test3013 | |
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/test3013')
-rw-r--r-- | tests/data/test3013 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/data/test3013 b/tests/data/test3013 index 0dda07797..9c0ce445c 100644 --- a/tests/data/test3013 +++ b/tests/data/test3013 @@ -18,7 +18,7 @@ ETag: "21025-dc7-39462498" Accept-Ranges: bytes Content-Length: 6 Connection: close -Content-Disposition: inline; filename="MMM3013MMM" +Content-Disposition: inline; filename="MMM%TESTNUMBERMMM" Content-Type: text/html Funny-head: yesyes @@ -39,7 +39,7 @@ http Two --output-dir with --next in between </name> <command option="no-output,no-include"> -http://%HOSTIP:%HTTPPORT/this/is/the/3013 -O --output-dir %PWD/log http://%HOSTIP:%HTTPPORT/another/3013 -o second3013 --output-dir %PWD/log +http://%HOSTIP:%HTTPPORT/this/is/the/%TESTNUMBER -O --output-dir %PWD/log http://%HOSTIP:%HTTPPORT/another/%TESTNUMBER -o second%TESTNUMBER --output-dir %PWD/log </command> </client> @@ -47,21 +47,21 @@ http://%HOSTIP:%HTTPPORT/this/is/the/3013 -O --output-dir %PWD/log http://%HOSTI # Verify data after the test has been "shot" <verify> <protocol> -GET /this/is/the/3013 HTTP/1.1
+GET /this/is/the/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
-GET /another/3013 HTTP/1.1
+GET /another/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol> -<file name="log/3013"> +<file name="log/%TESTNUMBER"> -foo- </file> -<file2 name="log/second3013"> +<file2 name="log/second%TESTNUMBER"> -foo- </file2> </verify> |