summaryrefslogtreecommitdiff
path: root/tests/data/test1360
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-12 17:38:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-19 15:57:21 +0100
commite2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 (patch)
tree3d15e2bf1fa76e0d951d64edeccca6b70636e0ed /tests/data/test1360
parent453ad35d15adf06bd1a141fb026214bc599b067f (diff)
downloadcurl-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/test1360')
-rw-r--r--tests/data/test136020
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/data/test1360 b/tests/data/test1360
index f0aac4bb4..3f7b43535 100644
--- a/tests/data/test1360
+++ b/tests/data/test1360
@@ -9,7 +9,7 @@ RETR
# Server-side
<reply>
-# file1360 contents...
+# file%TESTNUMBER contents...
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
@@ -17,7 +17,7 @@ Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html
-Content-Disposition: filename=name1360; charset=funny; option=strange
+Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
MOOOO
</data>
@@ -40,10 +40,10 @@ FTP download, file with C-D inside, using -O -J -D stdout
CURL_TESTDIR=%PWD/log
</setenv>
<command option="no-output,no-include">
-ftp://%HOSTIP:%FTPPORT/path/file1360 -O -J -D -
+ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D -
</command>
<postcheck>
-perl %SRCDIR/libtest/notexists.pl log/name1360
+perl %SRCDIR/libtest/notexists.pl log/name%TESTNUMBER
</postcheck>
</client>
@@ -56,24 +56,24 @@ PWD
CWD path
EPSV
TYPE I
-SIZE file1360
-RETR file1360
+SIZE file%TESTNUMBER
+RETR file%TESTNUMBER
QUIT
</protocol>
-<file1 name="log/file1360">
+<file1 name="log/file%TESTNUMBER">
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=name1360; charset=funny; option=strange
+Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
MOOOO
</file1>
-<file2 name="log/stdout1360">
+<file2 name="log/stdout%TESTNUMBER">
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
@@ -86,7 +86,7 @@ MOOOO
229 Entering Passive Mode (stripped)
200 I modify TYPE as you wanted
213 214
-150 Binary data connection for 1360 () (214 bytes).
+150 Binary data connection for %TESTNUMBER () (214 bytes).
226 File transfer complete
</file2>
<stripfile2>