aboutsummaryrefslogtreecommitdiff
path: root/tests/data
AgeCommit message (Collapse)Author
2012-11-04FTP: prevent the multi interface from blockingDaniel Stenberg
As pointed out in Bug report #3579064, curl_multi_perform() would wrongly use a blocking mechanism internally for some commands which could lead to for example a very long block if the LIST response never showed. The solution was to make sure to properly continue to use the multi interface non-blocking state machine. The new test 1501 verifies the fix. Bug: http://curl.haxx.se/bug/view.cgi?id=3579064 Reported by: Guido Berhoerster
2012-09-18test2006: Updated expected output to include hash nameDaniel Stenberg
Output changed in commit a34197ef77cb
2012-09-17metalink tests: Updated expected output to include hash nameMarc Hoersken
2012-09-04test1411: verify SMTP without SIZE supportDaniel Stenberg
2012-09-01Unit test for curl_multi_wait()Sara Golemon
2012-08-31test2032: bail out after last transferDaniel Stenberg
The test would hang and get aborted with a "ABORTING TEST, since it seems that it would have run forever." until I prevented that from happening. I also fixed the data file which got broken CRLF line endings when I sucked down the path from Joe's repo == my fault. Removed #37 from KNOWN_BUGS as this fix and test case verifies exactly this.
2012-08-31NTLM: verify multiple connections workJoe Mason
Add test2032 to test that NTLM does not switch connections in the middle of the handshake
2012-08-08verbose messages: fixed output of hostnames in re-used connectionsDaniel Stenberg
I suspect this is a regression introduced in commit 207cf150, included since 7.24.0. Avoid showing '(nil)' as hostname in verbose output by making sure the hostname fixup function is called early enough to set the pointers that are used for this. The name data is set again for each request even for re-used connections to handle multiple hostnames over the same connection (like with proxy) or that the casing etc of the host name is changed between requests (which has proven to be important at least once in the past). Test1011 was modified to use a redirect with a re-used a connection since it then showed the bug and now lo longer does. There's currently no easy way to have the test suite detect 'nil' texts in verbose ouputs so no tests will detect if this problem gets reintroduced. Bug: http://curl.haxx.se/mail/lib-2012-07/0111.html Reported by: Gisle Vanem
2012-08-07sws: close sockets properlyJoe Mason
Fix a bug where closed sockets (fd -1) were left in the all_sockets list, because of missing parens in a pointer arithmetic expression Reenable the tests that were locking up due to this bug.
2012-08-06DISABLED: disable the new tests that do NTLMDaniel Stenberg
The tests 2025, 2028 and 2031 don't work for me so I'll have them disabled for now until we solve the problem.
2012-08-03Add tests of auth retriesJoe Mason
2012-07-22http: print reason phrase from HTTP status line on errorKamil Dudka
Bug: https://bugzilla.redhat.com/676596
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.