Commit Graph
68 Commits
Author SHA1 Message Date
Alexander Köplinger 7b5f4a511f [System] Use the same port number instead of a random port in HttpWebRequestTest
A random port doesn't add any value and resulted in at least one port conflict on monojenkins:
http://monojenkins.cloudapp.net/job/Mono/243/testReport/MonoTests.System.Net/HttpWebRequestTest/BeginGetRequestStreamCancelIfNotAllBytesWritten/
2014-06-22 20:10:17 +02:00
Rodrigo Kumpera e0f26cc241 Fix the build. 2013-06-26 14:59:45 -04:00
Martin Baulig e181a1a44d [System]: Partially fix #12393. 2013-06-26 01:35:28 +02:00
Andres G. Aragoneses 84202a68bb [HttpWebRequest] Assertion message nitpicks in new timeout tests
The timeout tests I added recently* had a missing assertion message and
one with a couple of typos.

* https://github.com/mono/mono/commit/96be7828510a1fb14dab07eed1e93dc1a3a7dd84
2013-05-17 00:48:10 +01:00
Andres G. Aragoneses 96be782851 [HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian #74177)
The pull-request that was merged [1] intending to fix BXC#1183 [2] was
later reverted [3] because it broke a scenario that wasn't covered by tests.

This commits creates a couple of tests that cover this scenario (which was
implemented back in 2005 [4]) so that we are sure that any further proposed
fixes for bug 1183 [2] don't cause any regression in this area.

[1] https://github.com/mono/mono/commit/8c2167d52cb9acf9582647ebb5f99c92d9127fbd
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=11833
[3] https://github.com/mono/mono/commit/14f0405443693ec2586e73e4b3746134046210d5
[4] https://bugzilla.novell.com/show_bug.cgi?id=317553
2013-04-20 14:29:37 +01:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Martin Baulig 3a7a355522 [#7637][Web]: This is supposed to fail prior to .NET 4.0.
Fixes my previous commit 1ccb01e.
2012-10-29 15:47:49 +01:00
Martin Baulig 1ccb01e108 [#7637][Web]: Support empty write streams. 2012-10-27 01:15:21 +02:00
Martin Potter 6d56f4429e Unit tests for Bug #6405
Unit tests for https://bugzilla.xamarin.com/show_bug.cgi?id=6405
2012-08-06 12:00:39 -07:00
Martin Baulig 15053c403f Oops, actually remove the 'Date' header. 2012-06-26 03:06:56 +02:00
Martin Baulig abab46be8b Fix DateTime.MinValue in HttpWebRequest.Date.
* HttpWebRequestTest.cs: Extend this by adding each DateTimeKind
  and testing the result.  This test now passes again.
2012-06-26 02:51:09 +02:00
Marek Safar 1041e924c1 Fix few tests 2012-06-25 19:35:13 +01:00
Marek Safar 8fc4502bf7 Disable more tests 2012-06-25 11:48:38 +01:00
Marek Safar 4dd7b7e524 Enable fixed test 2012-06-19 12:34:51 +01:00
Marek Safar 7287c9cb10 Disable few more tests 2012-06-18 19:28:50 +01:00
Marek Safar 5dba4d1e7d Add timeout to webrequest tests 2012-06-15 11:15:57 +01:00
Marek Safar d22cff2d3f Disable not working test 2012-06-07 11:38:53 +01:00
Vinicius Jarina 7c32f15193 Removed broken tests from System 2012-06-04 09:12:20 -03:00
Marek Safar 11104b4ec8 Fix failing tests on .net 2011-12-07 18:34:26 +00:00
Marek Safar 1624a94ba1 Remove NET_2_0 2011-12-07 18:34:25 +00:00
Gonzalo Paniagua Javier 665cf6c6e6 Comment out test that does not work on linux. 2011-02-13 19:51:23 -05:00
Gonzalo Paniagua Javier fb13ef43ce [HttpWebRequest] Support 4.0 Date property. 2011-01-18 16:44:12 -05:00
Gonzalo Paniagua Javier 9ae3d21c17 [HttpWebRequest] Support 4.0 Host property. 2011-01-18 12:52:58 -05:00
Jonathan Pobst abee25f094 2010-01-15 Jonathan Pobst <[email protected]>
* HttpWebRequestTest.cs: Mark test WriteServerAborts as
	NotWorking.  Documented on bug #312968.

svn path=/trunk/mcs/; revision=149653
2010-01-15 22:45:38 +00:00
Gonzalo Paniagua Javier bc9b46831d 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: use different ports for different tests since
	the shutdown might take a little bit and tests might conflict.


svn path=/trunk/mcs/; revision=137667
2009-07-10 03:21:35 +00:00
Gonzalo Paniagua Javier 64faaf06cf ignore test that fails on windows
svn path=/trunk/mcs/; revision=137665
2009-07-09 23:07:14 +00:00
Gert Driesen 8d403f0381 * WebConnectionStream.cs: Move and improve argument checks to match MS.
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=137450
2009-07-06 19:58:00 +00:00
Gert Driesen ba7a4ef720 * HttpWebRequestTest.cs: Marked test notworking on 1.0 profile.
svn path=/trunk/mcs/; revision=137448
2009-07-06 19:34:33 +00:00
Gert Driesen 610473cb54 * HttpWebRequestTest.cs: Added tests for bug #511851. Added tests
for request stream. Fixed compiler warnings, and fixed code style.
* HttpWebResponseTest.cs: Added tests for response stream. Fixed
compiler warnings.

svn path=/trunk/mcs/; revision=137447
2009-07-06 19:30:33 +00:00
Gonzalo Paniagua Javier 09ff251a3a 2009-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add tests for POST + redirect and 401.


svn path=/trunk/mcs/; revision=137429
2009-07-06 17:40:28 +00:00
Gonzalo Paniagua Javier 485b815f66 increase timeouts to make this work on machines under load
svn path=/trunk/mcs/; revision=137088
2009-06-29 15:52:42 +00:00
Gonzalo Paniagua Javier 0114287236 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: sleep between reads as we do in
	WebClientTest.


svn path=/trunk/mcs/; revision=137052
2009-06-28 21:37:45 +00:00
Gonzalo Paniagua Javier d53f423926 fix timing issue
svn path=/trunk/mcs/; revision=137045
2009-06-28 07:15:41 +00:00
Gonzalo Paniagua Javier b022b6fd1a 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add a bunch of tests provided by
	Bassan Tabbara.


svn path=/trunk/mcs/; revision=137021
2009-06-26 22:48:39 +00:00
Robert Jordan 7d405be2c1 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136948
2009-06-26 11:59:34 +00:00
Gert Driesen e9ff61a03b * HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

svn path=/trunk/mcs/; revision=136570
2009-06-21 19:09:27 +00:00
Gert Driesen 2fc81bb034 * HttpListener2Test.cs: Added test for bug #513849.
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.

svn path=/trunk/mcs/; revision=136544
2009-06-20 13:22:17 +00:00
Gonzalo Paniagua Javier b05c346630 enable test
svn path=/trunk/mcs/; revision=135760
2009-06-09 15:14:39 +00:00
Gert Driesen 6c3fbf55b9 * HttpWebRequestTest.cs: Added tests for bugs #465613, #510661,
#510642 and #508027.

svn path=/trunk/mcs/; revision=135573
2009-06-05 23:20:31 +00:00
Gert Driesen 55e84a759f * HttpWebRequestTest.cs: Added Not-Modified-Since test. Updated
bug numbers.

svn path=/trunk/mcs/; revision=126263
2009-02-08 10:33:09 +00:00
Gert Driesen 2554a51eb9 * HttpListener2Test.cs: Make tests quiet.
* HttpWebRequestTest.cs: Added test for bug #471782.

svn path=/trunk/mcs/; revision=125852
2009-02-05 12:06:22 +00:00
Gonzalo Paniagua Javier ff77592380 re-enable test. Works now.
svn path=/trunk/mcs/; revision=123314
2009-01-14 05:48:45 +00:00
Gonzalo Paniagua Javier 35d2dfcde9 ignore test by now
svn path=/trunk/mcs/; revision=119281
2008-11-19 08:49:13 +00:00
Gonzalo Paniagua Javier 6743d87584 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponseTest.cs:
	* SocketResponder.cs:
	* HttpWebRequestTest.cs: don't pretend to be a 1.1 server or the
	socket will stay open. Timeout for Ntlm test is 5s now.

svn path=/trunk/mcs/; revision=117510
2008-10-30 19:12:52 +00:00
Gert Driesen 43e5b5d27a * HttpWebRequestTest.cs: Fixed test for bug #429200.
svn path=/trunk/mcs/; revision=116431
2008-10-19 18:07:02 +00:00
Gert Driesen 5a2e778eae * HttpWebRequestTest.cs: Added test for bug #429200.
svn path=/trunk/mcs/; revision=116357
2008-10-18 12:55:28 +00:00
Gonzalo Paniagua Javier 1430a2179b 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: mini-test case for NTLM auth.


svn path=/trunk/mcs/; revision=115278
2008-10-08 21:56:47 +00:00
Zoltan Varga d42b792e9a 2008-01-17 Zoltan Varga <[email protected]>
* HttpWebRequestTest.cs: Disable #353495 since it fails on the 2.0 profile.

svn path=/trunk/mcs/; revision=93146
2008-01-17 11:45:30 +00:00
Atsushi Eno 8be14ccb42 2008-01-15 Atsushi Enomoto <[email protected]>
* MonoHttpDate.cs : Parse() should return Local time. Fixed bug
	  #353495.

	* HttpWebRequestTest.cs : added test for bug #353495.


svn path=/trunk/mcs/; revision=92931
2008-01-15 10:07:48 +00:00
Arina Itkes c5c44ce2af TARGET_JVM: mark some tests with NotWorking under TARGET_JVM
svn path=/trunk/mcs/; revision=90140
2007-11-22 10:33:32 +00:00