[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 65/264: test970: improve the test
From: |
gnunet |
Subject: |
[gnurl] 65/264: test970: improve the test |
Date: |
Thu, 30 Apr 2020 16:06:08 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 9a7e62e7c32b4324bd80047765d03b3a3c42465b
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Mar 22 12:08:39 2020 +0100
test970: improve the test
- send more data to make problems more obvious
- don't start the data with minus, it makes diffs harder to read
- skip the headers in the stdout comparison
- save to a file name to also verify 'filename_effective'
Ref: #5131
---
tests/data/test970 | 26 +++++++-------------------
1 file changed, 7 insertions(+), 19 deletions(-)
diff --git a/tests/data/test970 b/tests/data/test970
index d8a08b8f9..3496a2a73 100644
--- a/tests/data/test970
+++ b/tests/data/test970
@@ -16,12 +16,12 @@ Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
Accept-Ranges: bytes
-Content-Length: 6
+Content-Length: 445
Connection: close
Content-Type: text/html
Funny-head: yesyes
--foo-
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum
</data>
</reply>
@@ -38,11 +38,11 @@ debug
CURL_TIME=13
CURL_VERSION=curl-unit-test-fake-version
</setenv>
- <name>
+<name>
HTTP GET with JSON output
- </name>
- <command>
-http://%HOSTIP:%HTTPPORT/970 --write-out '%{json}'
+</name>
+<command option="no-include">
+http://%HOSTIP:%HTTPPORT/970 --write-out '%{json}' -o log/out970
</command>
</client>
@@ -59,19 +59,7 @@ Accept: */*
</protocol>
<stdout nonewline="yes">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
--foo-
-{"url_effective":"http://%HOSTIP:%HTTPPORT/970","http_code":200,"response_code":200,"http_connect":0,"time_total":0.000013,"time_namelookup":0.000013,"time_connect":0.000013,"time_appconnect":0.000013,"time_pretransfer":0.000013,"time_starttransfer":0.000013,"size_header":250,"size_request":85,"size_download":6,"size_upload":0,"speed_download":0.000013,"speed_upload":0.000013,"content_type":"text/html","num_connects":1,"time_redirect":0.000013,"num_redirects":0,"ssl_verify_result":0,"pro
[...]
+{"url_effective":"http://%HOSTIP:%HTTPPORT/970","http_code":200,"response_code":200,"http_connect":0,"time_total":0.000013,"time_namelookup":0.000013,"time_connect":0.000013,"time_appconnect":0.000013,"time_pretransfer":0.000013,"time_starttransfer":0.000013,"size_header":252,"size_request":85,"size_download":445,"size_upload":0,"speed_download":0.000013,"speed_upload":0.000013,"content_type":"text/html","num_connects":1,"time_redirect":0.000013,"num_redirects":0,"ssl_verify_result":0,"p
[...]
</stdout>
</verify>
</testcase>
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 71/264: RELEASE-NOTES: synced, (continued)
- [gnurl] 71/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 21/264: select: add 'timeout_ms' wrap-around precaution to Curl_select, gnunet, 2020/04/30
- [gnurl] 79/264: travis: update the ngtcp2 build to use the latest OpenSSL patch, gnunet, 2020/04/30
- [gnurl] 70/264: OS400: Update strings for ccsid-ifier, gnunet, 2020/04/30
- [gnurl] 73/264: packages: add OS400/chkstrings.c to the dist, gnunet, 2020/04/30
- [gnurl] 50/264: nss: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 62/264: lib/curl_setup: adjust the copyright year range, gnunet, 2020/04/30
- [gnurl] 78/264: CI: remove default Ubuntu build from GitHub Actions, gnunet, 2020/04/30
- [gnurl] 30/264: vtls: free ssl_config leftovers on out-of-memory, gnunet, 2020/04/30
- [gnurl] 75/264: config: remove all defines of HAVE_DES_H, gnunet, 2020/04/30
- [gnurl] 65/264: test970: improve the test,
gnunet <=
- [gnurl] 82/264: docs/make: generate curl.1 from listed files only, gnunet, 2020/04/30
- [gnurl] 76/264: CI: migrate macOS jobs from Azure and Travis CI to GitHub Actions, gnunet, 2020/04/30
- [gnurl] 34/264: DISABLED: disable test 323, gnunet, 2020/04/30
- [gnurl] 42/264: tool_setopt: correct the copyright year range, gnunet, 2020/04/30
- [gnurl] 90/264: KNOWN_BUGS: "stick to same family over SOCKS pro" is presumed fixed, gnunet, 2020/04/30
- [gnurl] 63/264: TODO: Use "random" ports for the test servers, gnunet, 2020/04/30
- [gnurl] 85/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 120/264: windows: enable UnixSockets with all build toolchains, gnunet, 2020/04/30
- [gnurl] 118/264: sockfilt: remove redundancy in timeout handling, gnunet, 2020/04/30
- [gnurl] 97/264: output.d: quote the URL when globbing, gnunet, 2020/04/30