summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
...
* test970: make it require proxy supportDaniel Stenberg2020-06-021-0/+1
| | | | | | | | | | | This test verifies the -w %json output and the test case includes a full generated "blob". If there's no proxy support built into libcurl, it will return an error for proxy related info variables and they will not be included in the json, thus causing a mismatch and this test fails. Reported-by: Marc Hörsken Fixes #5501 Closes #5502
* build: disable more code/data when built without proxy supportDaniel Stenberg2020-05-305-3/+9
| | | | | | Added build to travis to verify Closes #5466
* url: alloc the download buffer at transfer startDaniel Stenberg2020-05-301-4/+1
| | | | | | | | | | | ... and free it as soon as the transfer is done. It removes the extra alloc when a new size is set with setopt() and reduces memory for unused easy handles. In addition: the closure_handle now doesn't use an allocated buffer at all but the smallest supported size as a stack based one. Closes #5472
* url: accept "any length" credentials for proxy authDaniel Stenberg2020-05-252-0/+56
| | | | | | | | | | | They're only limited to the maximum string input restrictions, not to 256 bytes. Added test 1178 to verify Reported-by: Will Roberts Fixes #5448 Closes #5449
* all: fix codespell errorsViktor Szakats2020-05-251-1/+1
| | | | | | Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes https://github.com/curl/curl/pull/5452
* curl: remove -J "informational" written on stdoutDaniel Stenberg2020-05-232-4/+4
| | | | | | | | | | | curl would previously show "curl: Saved to filename 'name from header'" if -J was used and a name was picked from the Content-Disposition header. That output could interfer with other stdout output, such as -w. This commit removes that output line. Bug: https://curl.haxx.se/mail/archive-2020-05/0044.html Reported-by: Коваленко Анатолий Викторович Closes #5435
* test1632: verify FTP through HTTPS-proxy with connection re-useDaniel Stenberg2020-05-152-1/+106
|
* test1631: verify FTP download through HTTPS-proxyDaniel Stenberg2020-05-152-1/+88
|
* url: make the updated credentials URL-encoded in the URLDaniel Stenberg2020-05-142-0/+79
| | | | | | | | Found-by: Gregory Jefferis Reported-by: Jeroen Ooms Added test 1168 to verify. Bug spotted when doing a redirect. Bug: https://github.com/jeroen/curl/issues/224 Closes #5400
* tests: add https-proxy support to the test suiteDaniel Stenberg2020-05-142-0/+58
| | | | | | | Initial test 1630 added with basic HTTPS-proxy use. HTTPS-proxy is like HTTP proxy but with a full TLS connection to the proxy. Closes #5399
* docs/options-in-versions: which version added each cmdline optionDaniel Stenberg2020-05-132-1/+26
| | | | | | | | Added test 971 to verify that the list is in sync with the files in cmdline-opts. The check also verifies that .d-files that uses Added: specify the same version number as the options-in-versions file does. Closes #5381
* tool: Add option --retry-all-errors to retry on any errorJay Satiro2020-05-122-1/+66
| | | | | | The "sledgehammer" of retrying. Closes https://github.com/curl/curl/pull/5185
* test1238: avoid tftpd being busy for tests shortly followingMarc Hoersken2020-05-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | The tftpd server may still be busy if the total timeout of 25 seconds has not been reached or no sread error was received during or after the execution of the timeout test 1238. Once the next TFTP test comes around (eg. 1242 or 1243), those will fail because the tftpd server is still waiting on data from curl due to the UDP protocol being stateless and having no connection close. On Linux this error may not happen, because ICMP errors generated due to a swrite error can also be returned async on the next sread call instead. Therefore we will now just kill the tftpd server after test 1238 to make sure that the following tests are not affected. This enables us to no longer ignore tests 1242, 1243, 2002 and 2003 on the CI platforms CirrusCI and AppVeyor. Assisted-by: Peter Wu Closes #5364
* test613.pl: make tests 613 and 614 work with OpenSSH for WindowsMarc Hoersken2020-05-062-4/+0
| | | | | | | | | OpenSSH for Windows shows group and other/world permissions as *, because those concepts do not exist on Windows. It also does not show the current or parent directory, so we just ignore those. Reviewed-by: Daniel Stenberg Closes #5328
* dynbuf: introduce internal generic dynamic buffer functionsDaniel Stenberg2020-05-041-1/+0
| | | | | | | | | | | | | A common set of functions instead of many separate implementations for creating buffers that can grow when appending data to them. Existing functionality has been ported over. In my early basic testing, the total number of allocations seem at roughly the same amount as before, possibly a few less. See docs/DYNBUF.md for a description of the API. Closes #5300
* tests: add support for SSH server variant specific transfer pathsMarc Hoersken2020-05-0249-49/+49
| | | | | | | | OpenSSH for Windows requires paths in the format of /C:/ instead of the pseudo-POSIX paths /cygdrive/c/ or just /c/ Reviewed-by: Daniel Stenberg Closes #5298
* tests: make test 1248 + 1249 use %NOLISTENPORTDaniel Stenberg2020-05-022-2/+2
| | | | | | | ... instead of a port of a non-running server so that it works stand-alone. Closes #5318
* test75: Remove precheck testDan Fandrich2020-04-301-5/+0
| | | | | This has not been needed since commit 9fa42bed and often prevents it from running at all with dynamic test ports.
* tests: Stop referring to server ports when they're not usedDan Fandrich2020-04-3025-25/+25
| | | | | | | | | Several tests referred to specific server ports even when the test didn't actually use that server or specify that it's needed. In such cases, the test harness substitutes the text "[not running]" as the port number which causes many such tests to fail due to the inability to parse the URL. These tests are changed to use %NOLISTENPORT which will always be substituted correctly.
* conncache: various concept cleanupsDaniel Stenberg2020-04-301-0/+14
| | | | | | | | | | | | | | | | More connection cache accesses are protected by locks. CONNCACHE_* is a beter prefix for the connection cache lock macros. Curl_attach_connnection: now called as soon as there's a connection struct available and before the connection is added to the connection cache. Curl_disconnect: now assumes that the connection is already removed from the connection cache. Ref: #4915 Closes #5009
* test1177: look for curl.h in source directoryKamil Dudka2020-04-291-1/+1
| | | | | | If we use a separate build directory, there is no copy of the header. Closes #5310
* tests: make runtests check that disabled tests existsDaniel Stenberg2020-04-241-1/+0
| | | | | | | ... and error out if so. Removed '536' from DISABLED as there is no such test file. Closes #5288
* test1154: set a proper nameDaniel Stenberg2020-04-241-1/+1
|
* transfer: Switch PUT to GET/HEAD on 303 redirectJay Satiro2020-04-222-1/+78
| | | | | | | | | | | | | | Prior to this change if there was a 303 reply to a PUT request then the subsequent request to respond to that redirect would also be a PUT. It was determined that was most likely incorrect based on the language of the RFCs. Basically 303 means "see other" resource, which implies it is most likely not the same resource, therefore we should not try to PUT to that different resource. Refer to the discussions in #5237 and #5248 for more information. Fixes https://github.com/curl/curl/issues/5237 Closes https://github.com/curl/curl/pull/5248
* tests: add %NOLISTENPORT and use itDaniel Stenberg2020-04-206-6/+6
| | | | | | | | | | | | The purpose with this variable is to provide a port number that is reasonably likely to not have a listener on the local host so that tests can try connect failures against it. It uses port 47 - "reserved" according to IANA. Updated six tests to use it instead of the previous different ports. Assisted-by: Emil Engler Closes #5270
* mqtt: improve the state machineDaniel Stenberg2020-04-208-5/+189
| | | | | | | | | | To handle PUBLISH before SUBACK and more. Updated the existing tests and added three new ones. Reported-by: Christoph Krey Bug: https://curl.haxx.se/mail/lib-2020-04/0021.html Closes #5246
* ensure all references to ports are replaced by varsxquery2020-04-202-6/+6
|
* add more alt-svc test coveragexquery2020-04-203-1/+190
|
* test1247: use http server to get the port number setDaniel Stenberg2020-04-201-1/+1
| | | | Follow-up to 0f5db7b263f
* mime: properly check Content-Type even if it has parametersPatrick Monnerat2020-04-192-1/+65
| | | | | | | | New test 669 checks this fix is effective. Fixes #5256 Closes #5258 Reported-by: thanhchungbtc on github
* test1245: make it work with dynamic FTP server portbagder/tests-on-dynportDaniel Stenberg2020-04-181-5/+1
|
* test1055: make it work with dynamic FTP portDaniel Stenberg2020-04-181-5/+1
|
* test1028: make it run on dynamic FTP server portDaniel Stenberg2020-04-181-5/+1
|
* test1056: work with dynamic HTTP ipv6 portDaniel Stenberg2020-04-181-6/+2
|
* test1448: work with dynamic HTTP server portDaniel Stenberg2020-04-181-2/+2
|
* tests: introduce preprocessed test casesDaniel Stenberg2020-04-181-6/+2
| | | | | | | | | | | | The runtests script now always performs variable replacement on the entire test source file before the test gets executed, and saves the updated version in a temporary file (log/test[num]) so that all test case readers/servers can use that version (if present) and thus enjoy the powers of test case variable substitution. This is necessary to allow complete port number freedom. Test 309 is updated to work with a non-fixed port number thanks to this.
* tests: make 2006-2010 handle different port number lengthsDaniel Stenberg2020-04-185-8/+24
|
* test2043: use revoked.badssl.com instead of revoked.grc.comMarc Hoersken2020-04-141-1/+1
| | | | | | | | The certificate of revoked.grc.com has expired on 2020-04-13. Reviewed-by: Jay Satiro Closes #5233
* tests: add four MQTT tests 1190 - 1193Daniel Stenberg2020-04-145-0/+236
|
* test1908: avoid using fixed port number in test dataDaniel Stenberg2020-04-131-1/+1
| | | | Closes #5225
* test1148: tolerate progress updates better (again)Jay Satiro2020-04-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | - Ignore intermediate progress updates. - Support locales that use a character other than period as decimal separator (eg 100,0%). test1148 checks that the progress finishes at 100% and has the right bar width. Prior to this change the test assumed that the only progress reported for such a quick transfer was 100%, however in rare instances (like in the CI where transfer time can slow considerably) there may be intermediate updates. For example, below is stderrlog1148 from a failed CI run with explicit \r and \n added (it is one line; broken up so that it's easier to understand). \r \r################################## 48.3% \r######################################################################## 100.0% \n Closes https://github.com/curl/curl/pull/5194
* tests: verify split initial HTTP requests with CURL_SMALLREQSENDDaniel Stenberg2020-04-083-27/+159
| | | | | | | | | | test1294: "split request" being when the entire request isn't sent in the first go, and the remainder is sent in the PERFORM state. A GET request is otherwise not sending anything during PERFORM. test1295: same kind of split but with POST Closes #5197
* test1566: verify --etag-compare that gets a 304 backDaniel Stenberg2020-04-052-0/+66
| | | | | | Verifies the fix in #5183 Closes #5186
* curl: allow both --etag-compare and --etag-save with same file nameKwon-Young Choi2020-04-053-1/+120
| | | | | | | | | | | | This change inverse the order of processing for the --etag-compare and --etag-save option to process first --etag-compare. This in turn allows to use the same file name to compare and save an etag. The original behavior of not failing if the etag file does not exists is conserved. Fixes #5179 Closes #5180
* test1177: verify that all the CURL_VERSION_ bits are documentedDaniel Stenberg2020-03-292-1/+26
|
* writeout_json: Fix data type issuesMichael Kaufmann2020-03-271-1/+1
| | | | | | | | | | | | | | | Load long values correctly (e.g. for http_code). Use curl_off_t (not long) for: - size_download (CURLINFO_SIZE_DOWNLOAD_T) - size_upload (CURLINFO_SIZE_UPLOAD_T) The unit for these values is bytes/second, not microseconds: - speed_download (CURLINFO_SPEED_DOWNLOAD_T) - speed_upload (CURLINFO_SPEED_UPLOAD_T) Fixes #5131 Closes #5152
* copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg2020-03-242-0/+42
| | | | | | | | | Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
* getinfo: provide CURLINFO_HEADER_SIZE and CURLINFO_REQUEST_SIZE overrideDaniel Stenberg2020-03-221-1/+2
| | | | | | | To let debug-builds return fake values, like in test 970. Ref: #5131 Closes #5136
* test970: improve the testDaniel Stenberg2020-03-221-19/+7
| | | | | | | | | - 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: add test 430, 431 and 432 to verify the --config fixDaniel Stenberg2020-03-204-0/+298
| | | | Verify the fixes in 4e0b4fee4