From e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 12 Mar 2021 17:38:26 +0100 Subject: 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 --- tests/data/test1341 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/data/test1341') diff --git a/tests/data/test1341 b/tests/data/test1341 index 9a7000180..9203cc6ce 100644 --- a/tests/data/test1341 +++ b/tests/data/test1341 @@ -16,7 +16,7 @@ Server: test-server/fake Content-Length: 6 Connection: close Content-Type: text/html -Content-Disposition: filename=name1341; charset=funny; option=strange +Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange 12345 @@ -40,7 +40,7 @@ HTTP GET with -O -J and Content-Disposition, -D stdout CURL_TESTDIR=%PWD/log -http://%HOSTIP:%HTTPPORT/1341 -J -O -D - -w "curl: Saved to filename %{filename_effective}\n" +http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D - -w "curl: Saved to filename %{filename_effective}\n" @@ -48,27 +48,27 @@ http://%HOSTIP:%HTTPPORT/1341 -J -O -D - -w "curl: Saved to filename %{filename_ # Verify data after the test has been "shot" -GET /1341 HTTP/1.1 +GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* - + 12345 - + HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Length: 6 Connection: close Content-Type: text/html -Content-Disposition: filename=name1341; charset=funny; option=strange +Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange -curl: Saved to filename %PWD/log/name1341 +curl: Saved to filename %PWD/log/name%TESTNUMBER -- cgit v1.2.1