aboutsummaryrefslogtreecommitdiff
path: root/tests/data
AgeCommit message (Collapse)Author
2012-07-12tests: verify the stricter numeric option parserDaniel Stenberg
Test 1409 and 1410 verifies the stricter numeric option parser introduced the other day in commit f2b6ebed7b.
2012-07-12test48: verify that HEAD doesn't close extraDaniel Stenberg
Two commits ago, we fixed a bug where the connction would be closed prematurely after a HEAD. Now I added connection-monitor to test 48 and added a second HEAD and make sure that both are sent over the same connection. This triggered a failure before the bug fix and now works. Will help us avoid a future regression of this kind.
2012-07-12connection-monitor: always log disconnect when enabledDaniel Stenberg
This makes verifying easier and makes us more sure curl closes the connection only at the correct point in time. Adjusted test 206 and 1008 accordingly and updated the docs for it.
2012-07-10test231: fix wrong -C use!Daniel Stenberg
2012-07-09test 46: use different path lengths to get reliable sort orderDaniel Stenberg
Since the order of the cookies is sorted by the length of the paths, having them on the same path length will make the test depend on what order the qsort() implementation will put them. As seen in the windows/msys output posted by Guenter in this posting: http://curl.haxx.se/mail/lib-2012-07/0105.html
2012-07-05tests: use connection-monitor and verify resultsDaniel Stenberg
Test 1008 and 206 don't show the disconnect since it happens when SWS awaits a new request, but 503 does and so the verify section needs that string added.
2012-07-05sws: add 'connection-monitor' command supportDaniel Stenberg
Using this, the server will output in the protocol log when the connection gets disconnected and thus we will verify correctly in the test cases that the connection doesn't get closed prematurely. This is important for example NTLM to work. Documentation added to FILEFORMAT, test 503 updated to use this.
2012-07-03cookies: change the URL in the cookie jar file headerDaniel Stenberg
2012-07-02configure.ac: verify that libmetalink is new enoughYang Tse
Enabling test2017 to test2022.
2012-06-29test2017 to test2022: more metalink testsYang Tse
With this commit, checks done in previous test2017 are now done in test2018. Whole range test2017 to test2022 DISABLED until configure is capable of requiring a new-enough metalink library. Don't try these without mentioned check in place!
2012-06-29test2005 to test2016: improve failure detectionYang Tse
2012-06-28Metalink: message updatesTatsuhiro Tsujikawa
Print "parsing (...) OK" only when no warnings are generated. If no file is found in Metalink, treat it FAILED. If no digest is provided, print WARNING in parse_metalink(). Also print validating FAILED after download. These changes make tests 2012 to 2016 pass.
2012-06-27tests: add five more Metalink test casesYang Tse
2012-06-27tests: update Metalink message formatYang Tse
2012-06-24test: Added test HTTP receive cookies over IPv6Ghennadi Procopciuc
2012-06-22tests: add another Metalink test caseYang Tse
2012-06-22tests: Enable test2010 and fixed hash valueTatsuhiro Tsujikawa
2012-06-21tests: add six Metalink test casesYang Tse
2012-06-21test 2005: add verification of hash checking outcomeYang Tse
2012-06-21tests: Added Metalink test case # 2005Tatsuhiro Tsujikawa
2012-06-11tests: fix test definitions # 1355, 1363, 1385 and 1393Yang Tse
-i without HTTP protocol shall not include headers in the output
2012-06-09Fixes allowing 26 more test cases in 1334 to 1393 range to succeedYang Tse
2012-06-09tests: fix test definitions # 1370 and 1371Yang Tse
-J without -O shall not honor C-D filename
2012-06-07Fixes allowing HTTP test cases 1338, 1339, 1368 and 1369 to succeedYang Tse
2012-06-07tests 1364 to 1393: several -o filename -J -i -D combinations for HTTP and FTPYang Tse
2012-06-07tests 1348 to 1363: test definition polishingYang Tse
Verify that the "Saved to filename 'blabla'" message is only displayed when the 'blabla' filename being used _actually_ has been specified by the server in the Content-Disposition header. Use relative path for unintended file creation postcheck.
2012-06-06Disable non-HTTP header related testsYang Tse
These now detect incompleate header data and fail
2012-06-06tests 1348 to 1363: compleate header data part of test definitionYang Tse
2012-06-05tests 1334 to 1363 revisited.Yang Tse
Add a postcheck section to verify unintended file creation. Remove needless <file> checks in verify section. Renumbering where appropriate.
2012-06-05tests 1348 to 1363: add a comma in test descriptionYang Tse
2012-06-04pop3 tests: CAPA instead of AUTHDaniel Stenberg
After Steve's commit e336bc7c42c7340 test 1319 and 1407 need to check for CAPA instead of AUTH.
2012-06-04tests 1356 to 1363: several -O -J -i -D combinations with FTP protocolYang Tse
Currently 1356 to 1362 succeed but a write failure is logged in traceNNNN. Currently 1363 fails, so disabled for now.
2012-06-04tests: Updated pop3 tests for change in auth mechanism detectionSteve Holme
2012-06-04tests 1348 to 1355: several -O -J -i -D combinations with FTP protocolYang Tse
Currently 1348 to 1354 succeed but a write failure is logged in traceNNNN. Currently 1355 fails, so disabled for now.
2012-06-04tests 1346 to 1347: several -O -J -i -D combinations with HTTP protocolYang Tse
2012-06-01tests 1334 to 1345: several -O -J -i -D combinations with HTTP protocolYang Tse
2012-05-30pop3 test server: allow pop3 test server verification to succeed againYang Tse
Introduce SUPPORTCAPA and SUPPORTAUTH config commands to allow further pop3 test server expansion for tests that require CAPA or AUTH support, although this will need some extra work to make it fully functional.
2012-05-27pop3: Added support for SASL based authentication mechanism detectionSteve Holme
Added support for detecting the supported SASL authentication mechanisms via the AUTH command. There are two ways of detecting them, either by using the AUTH command, that will return -ERR if not supported or by using the CAPA command which will return SASL and the list of mechanisms if supported, not include SASL if SASL authentication is not supported or -ERR if the CAPA command is not supported. As such it seems simpler to use the AUTH command and fallback to normal clear text authentication if the the command is not supported. Additionally updated the test cases to return -ERR when the AUTH command is encountered. Additional test cases will be added when support for the individual authentication mechanisms is added.
2012-05-25Made -D option work with -O and -J.Tatsuhiro Tsujikawa
To achieve this, first new structure HeaderData is defined to hold necessary data to perform header-related work. Then tool_header_cb now receives HeaderData pointer as userdata. All header-related work (currently, dumping header and Content-Disposition inspection) are done in this callback function. HeaderData.outs->config is used to determine whether each work is done. Unit tests were also updated because after this change, curl code always sets CURLOPT_HEADERFUNCTION and CURLOPT_HEADERDATA. Tested with -O -J -D, -O -J -i and -O -J -D -i and all worked fine.
2012-04-20HTTP: empty chunked POST ended up in two zero size chunksDaniel Stenberg
When doing a chunked-encoded POST with -d (CURLOPT_POSTFIELDS) and the size of the POST was zero length, it made libcurl first send a zero chunk and then the terminating one. This could confuse a receiver and it should rather just send the terminating chunk as it does with this fix. Test case 1333 is added to verify. Bug: http://curl.haxx.se/mail/archive-2012-04/0060.html Reported by: Arnaud Compan
2012-04-05test: added test 1332 that tests --post303Daniel Stenberg
2012-04-05test1331: cookies on a 407 responseDaniel Stenberg
Verify that cookies are sent back even after a 407 response has been received
2012-04-01HTTP: reset expected DL/UL sizes on redirectsDaniel Stenberg
With FOLLOWLOCATION enabled. When a 3xx page is downloaded and the download size was known (like with a Content-Length header), but the subsequent URL (transfered after the 3xx page) was chunked encoded, then the previous "known download size" would linger and cause the progress meter to get incorrect information, ie the former value would remain being sent in. This could easily result in downloads that were WAY larger than "expected" and would cause >100% outputs with the curl command line tool. Test case 599 was created and it was used to repeat the bug and then verify the fix. Bug: http://curl.haxx.se/bug/view.cgi?id=3510057 Reported by: Michael Wallner
2012-03-26test #1405: support HTTP disabled buildsYang Tse
2012-03-26test #809: Updated error code to match recent pop3 changesSteve Holme
2012-03-23tests #1316 #1319 #1320 #1321: add missing keywordsYang Tse
2012-03-23test #598: add missing keywordsYang Tse
2012-03-22tests #1400 #1401: add missing keywordsYang Tse
2012-03-22test #598: add to Makefile.amYang Tse
2012-03-18tests 140X: fix --libcurl generated source file reading mode for MSYS buildsYang Tse