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/test257 | |
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/test257')
-rw-r--r-- | tests/data/test257 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/data/test257 b/tests/data/test257 index 18320bfcb..701abb777 100644 --- a/tests/data/test257 +++ b/tests/data/test257 @@ -16,7 +16,7 @@ netrc HTTP/1.1 301 This is a weirdo text message swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake -Location: http://anotherone.com/2570002 +Location: http://anotherone.com/%TESTNUMBER0002 Connection: close This server reply is for testing a simple Location: following @@ -26,7 +26,7 @@ This server reply is for testing a simple Location: following HTTP/1.1 302 Followed here fine swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake -Location: http://athird.com/2570003 +Location: http://athird.com/%TESTNUMBER0003 If this is received, the location following worked @@ -44,13 +44,13 @@ If this is received, the location following worked HTTP/1.1 301 This is a weirdo text message swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake -Location: http://anotherone.com/2570002 +Location: http://anotherone.com/%TESTNUMBER0002 Connection: close HTTP/1.1 302 Followed here fine swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake -Location: http://athird.com/2570003 +Location: http://athird.com/%TESTNUMBER0003 HTTP/1.1 200 Followed here fine swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT @@ -71,13 +71,13 @@ http HTTP Location: following with --netrc-optional </name> <command> -http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc257 +http://supersite.com/want/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc%TESTNUMBER </command> <features> proxy </features> # netrc auth for two out of three sites: -<file name="log/netrc257"> +<file name="log/netrc%TESTNUMBER"> machine supersite.com login user1 password passwd1 machine anotherone.com login user2 password passwd2 </file> @@ -86,21 +86,21 @@ machine anotherone.com login user2 password passwd2 # Verify data after the test has been "shot" <verify> <protocol> -GET http://supersite.com/want/257 HTTP/1.1
+GET http://supersite.com/want/%TESTNUMBER HTTP/1.1
Host: supersite.com
Authorization: Basic dXNlcjE6cGFzc3dkMQ==
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
-GET http://anotherone.com/2570002 HTTP/1.1
+GET http://anotherone.com/%TESTNUMBER0002 HTTP/1.1
Host: anotherone.com
Authorization: Basic dXNlcjI6cGFzc3dkMg==
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
-GET http://athird.com/2570003 HTTP/1.1
+GET http://athird.com/%TESTNUMBER0003 HTTP/1.1
Host: athird.com
User-Agent: curl/%VERSION
Accept: */*
|