[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 205/264: tests: make 2006-2010 handle different port number leng
From: |
gnunet |
Subject: |
[gnurl] 205/264: tests: make 2006-2010 handle different port number lengths |
Date: |
Thu, 30 Apr 2020 16:08:28 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 5e2f4a33fe663c2ae8cc92c02193a7261c524867
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Apr 17 00:00:45 2020 +0200
tests: make 2006-2010 handle different port number lengths
---
tests/data/test2006 | 12 ++++++++----
tests/data/test2007 | 5 ++++-
tests/data/test2008 | 5 ++++-
tests/data/test2009 | 5 ++++-
tests/data/test2010 | 5 ++++-
5 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/tests/data/test2006 b/tests/data/test2006
index 0b84937ed..4cb61192d 100644
--- a/tests/data/test2006
+++ b/tests/data/test2006
@@ -85,8 +85,15 @@ Accept: */*
<file1 name="log/download2006">
Some data delivered from an HTTP resource
</file1>
+
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
+<stripfile2>
+s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
+</stripfile2>
<file2 name="log/heads2006">
-Content-Length: 496
+Content-Length: yeps
Accept-ranges: bytes
@@ -110,9 +117,6 @@ Metalink: fetching (log/download2006) from
(http://%HOSTIP:%HTTPPORT/2006) OK
Metalink: validating (log/download2006)...
Metalink: validating (log/download2006) [sha-256] OK
</file4>
-<stripfile2>
-s/Last-Modified:.*//
-</stripfile2>
<stripfile4>
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
diff --git a/tests/data/test2007 b/tests/data/test2007
index c8c023efb..738ac35f9 100644
--- a/tests/data/test2007
+++ b/tests/data/test2007
@@ -86,11 +86,14 @@ Accept: */*
<file1 name="log/download2007">
Something delivered from an HTTP resource
</file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
<stripfile2>
s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
</stripfile2>
<file2 name="log/heads2007">
-Content-Length: 496
+Content-Length: yeps
Accept-ranges: bytes
diff --git a/tests/data/test2008 b/tests/data/test2008
index 570cdba7d..b29ba911b 100644
--- a/tests/data/test2008
+++ b/tests/data/test2008
@@ -78,11 +78,14 @@ Accept: */*
<file1 name="log/download2008">
Some stuff delivered from an HTTP resource
</file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
<stripfile2>
s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
</stripfile2>
<file2 name="log/heads2008">
-Content-Length: 496
+Content-Length: yeps
Accept-ranges: bytes
diff --git a/tests/data/test2009 b/tests/data/test2009
index 10f95df4c..3cf4e4c48 100644
--- a/tests/data/test2009
+++ b/tests/data/test2009
@@ -79,11 +79,14 @@ Accept: */*
<file1 name="log/download2009">
Some contents delivered from an HTTP resource
</file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
<stripfile2>
s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
</stripfile2>
<file2 name="log/heads2009">
-Content-Length: 496
+Content-Length: yeps
Accept-ranges: bytes
diff --git a/tests/data/test2010 b/tests/data/test2010
index d43f4f1e1..08f1bfaa4 100644
--- a/tests/data/test2010
+++ b/tests/data/test2010
@@ -78,11 +78,14 @@ Accept: */*
<file1 name="log/download2010">
Contents delivered from an HTTP resource
</file1>
+# The Content-Length replace here is to handle with 4/5 digit port number in
+# the content
<stripfile2>
s/Last-Modified:.*//
+s/Content-Length: 49[67]/Content-Length: yeps/
</stripfile2>
<file2 name="log/heads2010">
-Content-Length: 496
+Content-Length: yeps
Accept-ranges: bytes
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 130/264: lib: never define CURL_CA_BUNDLE with a getenv, (continued)
- [gnurl] 130/264: lib: never define CURL_CA_BUNDLE with a getenv, gnunet, 2020/04/30
- [gnurl] 127/264: appveyor: sort builds by type and add two new variants, gnunet, 2020/04/30
- [gnurl] 134/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 103/264: memdebug: don't log free(NULL), gnunet, 2020/04/30
- [gnurl] 138/264: cleanup: correct copyright year range on a few files, gnunet, 2020/04/30
- [gnurl] 131/264: TODO: Option to make -Z merge lined based outputs on stdout, gnunet, 2020/04/30
- [gnurl] 104/264: build: fixed build for systems with select() in unistd.h, gnunet, 2020/04/30
- [gnurl] 226/264: multi-ssl: reset the SSL backend on `Curl_global_cleanup()`, gnunet, 2020/04/30
- [gnurl] 227/264: tests: run the SOCKS test server on a dynamic port number, gnunet, 2020/04/30
- [gnurl] 223/264: runtests: always put test number in servercmd file, gnunet, 2020/04/30
- [gnurl] 205/264: tests: make 2006-2010 handle different port number lengths,
gnunet <=
- [gnurl] 235/264: mqtt: make NOSTATE get within the debug name array, gnunet, 2020/04/30
- [gnurl] 233/264: tests: add %NOLISTENPORT and use it, gnunet, 2020/04/30
- [gnurl] 234/264: tests: run the RTSP test server on a dynamic port number, gnunet, 2020/04/30
- [gnurl] 232/264: mqtt: remove code with no purpose, gnunet, 2020/04/30
- [gnurl] 231/264: mqtt: fix Curl_read() error handling while reading remaining length, gnunet, 2020/04/30
- [gnurl] 247/264: tests/git: ignore mqttd and port files, gnunet, 2020/04/30
- [gnurl] 248/264: docs: fix two typos, gnunet, 2020/04/30
- [gnurl] 240/264: version: skip idn2_check_version() check and add precaution, gnunet, 2020/04/30
- [gnurl] 241/264: lib/mk-ca-bundle: skip empty certs, gnunet, 2020/04/30
- [gnurl] 242/264: transfer: Switch PUT to GET/HEAD on 303 redirect, gnunet, 2020/04/30