Commit Graph
159 Commits
Author SHA1 Message Date
Gert Driesen 7cbe766dac * DnsTest.cs: Use Assert syntax, and spaces to tabs. Added tests
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.

svn path=/trunk/mcs/; revision=126281
2009-02-08 19:43:44 +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 86c70cb777 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: tests for bug #467472.


svn path=/trunk/mcs/; revision=123858
2009-01-20 06:38:05 +00:00
Gonzalo Paniagua Javier 4181e28735 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: add directory listing test when the $HOME is
	not /.


svn path=/trunk/mcs/; revision=123616
2009-01-16 15:40:23 +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 b5ac5d886d 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: test deleting a file.


svn path=/trunk/mcs/; revision=123136
2009-01-12 22:03:32 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +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 eb75e457af 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: make sure we dispose the listener.


svn path=/trunk/mcs/; revision=119226
2008-11-18 21:52:27 +00:00
Gonzalo Paniagua Javier 9f5425dccb 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: (CreateNS) set a default read/write timeout
	of 5s.


svn path=/trunk/mcs/; revision=119033
2008-11-17 15:30:53 +00:00
Gonzalo Paniagua Javier 96679ba6ec 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: the upload test now passes with the MS
	runtime. Added another test for download.


svn path=/trunk/mcs/; revision=118784
2008-11-13 22:56:58 +00:00
Gonzalo Paniagua Javier d0ff095df5 Close() was missing in a bunch of tests
svn path=/trunk/mcs/; revision=118657
2008-11-12 21:47:40 +00:00
Gonzalo Paniagua Javier 9e17fdcd7f 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: Fixed Test7.


svn path=/trunk/mcs/; revision=118655
2008-11-12 21:38:54 +00:00
Gonzalo Paniagua Javier 28ea8bc9fc line not needed. might cause exception when writing
svn path=/trunk/mcs/; revision=118634
2008-11-12 20:12:06 +00:00
Gonzalo Paniagua Javier 8f1e89a022 2008-11-03 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: add test for bug 333985.


svn path=/trunk/mcs/; revision=117839
2008-11-04 03:05:45 +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
Miguel de Icaza 50946b99fd Fixes: #341443
2008-09-08  Miguel de Icaza  <[email protected]>

	* EndPointListener.cs (SearchListener): Cope with the raw_url not
	being merely a path, but potentially a full URI (see the proxy
	case). 

	* HttpListenerRequest.cs: Cope with raw_url not being merely a
	path, but potentially a full Uri.   Also uses TryCreate, hoping
	that one day it will be faster.

2008-09-08  Miguel de Icaza  <[email protected]>

	* Uri.cs (MaybeUri): A helper routine for methods in other classes
	to quickly determine if something might be a Uri, before calling
	the more expensive Uri.TryCreate (see bug 424192).


svn path=/trunk/mcs/; revision=112551
2008-09-08 21:59:21 +00:00
Miguel de Icaza ffd069f93a Add missing test
svn path=/trunk/mcs/; revision=109801
2008-08-06 23:11:19 +00:00
Atsushi Eno 8d708f6fbd 2008-08-06 Atsushi Enomoto <[email protected]>
* IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.

	* IPAddressTest.cs : added test strings for bug #411920 as well as
	  enabling some ipv4ParseOK strings.


svn path=/trunk/mcs/; revision=109737
2008-08-06 05:21:04 +00:00
Gert Driesen 4c899bc324 * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
remain accessible after the response is disposed (and the headers are
no longer available). Adding missing disposed checks in properties
(except for StatusCode) and GetResponseHeader. On the 2.0 profile,
headers must remain accessible after the HttpWebResponse is disposed.
* System_test.dll.sources: Added HttpWebResponseTest.cs.
* HttpWebResponseTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=108804
2008-07-25 18:42:53 +00:00
Gert Driesen 5b75c2f4a3 Fixed typo.
svn path=/trunk/mcs/; revision=107136
2008-07-03 08:41:54 +00:00
Gert Driesen 3c66cb9da6 * HttpListener2Test.cs: Added test for multiple responses.
* HttpWebResponseTest.cs: Added tests for disposed checks.

svn path=/trunk/mcs/; revision=107135
2008-07-03 08:40:58 +00:00
Miguel de Icaza 54992022ce 2008-06-08 Miguel de Icaza <[email protected]>
* ResponseStream.cs: Do not Close the HttpResponse object here as
	it is possible to issue multiple OutputStream.Close calls (they
	actually happen implicitly through things like StreamWriter.Close,
	and they are in various MSDN samples).

2008-05-28 Gonzalo Paniagua Javier <[email protected]>

svn path=/trunk/mcs/; revision=105259
2008-06-08 16:46:53 +00:00
Miguel de Icaza 9fc7158858 Add test I forgot to checkin the other day
svn path=/trunk/mcs/; revision=102888
2008-05-09 21:38:15 +00:00
Gert Driesen 1dcde62f36 * FileWebRequestTest.cs: Now that we have proper locking for file
deletes on unix, bug #323388 applies to unix as well.

svn path=/trunk/mcs/; revision=101100
2008-04-18 08:49:53 +00:00
Geoff Norton 2a4a01d024 In Test/System.Net:
2008-04-06  Geoff Norton  <[email protected]>

	* HttpListener2Test.cs:
	* HttpListenerRequestTest.cs: HttpListener Basic authenticationt test
	from Maciej Paszta <[email protected]>


svn path=/trunk/mcs/; revision=99957
2008-04-06 15:02:40 +00:00
Daniel Nauck 1533e98656 2008-02-09 Daniel Nauck <[email protected]>
* CookieContainerTest.cs: added some not working Add/Expired tests


svn path=/trunk/mcs/; revision=95332
2008-02-09 13:30:33 +00:00
Daniel Nauck 79c4211b32 Fixed compile error on 1.0 profile.
svn path=/trunk/mcs/; revision=95331
2008-02-09 13:18:34 +00:00
Daniel Nauck 623dcb1757 2008-02-09 Daniel Nauck <[email protected]>
* Cookie.cs: implemented HttpOnly
	* CookieTest.cs: added tests for public fields


svn path=/trunk/mcs/; revision=95323
2008-02-09 11:49:28 +00:00
Gert Driesen b26da0a865 * IPAddress.cs (Parse): Changed argument name to match MS.
(TryParse): Changed argument name to match MS.
(ParseIPV4): Only treat zero-length or " " address as empty on 1.0
profile. On 2.0 profile, only ignore characters after blank if last
part is valid hex string.
* IPv6Address.cs: Removed extra spaces and tabs.
* IPAddressTest.cs: Remove use of deprecated Assertion. Improved
existing tests.

svn path=/trunk/mcs/; revision=94052
2008-01-27 15:20:02 +00:00
Daniel Nauck 65eb7e9ac1 2008-01-26 Daniel Nauck <[email protected]>
* Cookie.cs: set Version to '1' if Port is set,
	don't include path and domain informations when version is 0,
	match ToString () output with .NET 2.0,
	fixes bug #316017

	* CookieTest.cs: enabled ToString () test,
	added Version property test


svn path=/trunk/mcs/; revision=94013
2008-01-26 19:05:46 +00:00
Daniel Nauck bdc6efa4ea 2008-01-26 Daniel Nauck <[email protected]>
* CookieTest.cs: added tests for Cookie.ToString (), see bug #316017,
	fixed line endings


svn path=/trunk/mcs/; revision=93993
2008-01-26 15:54:20 +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
Gert Driesen 1ee31fadfe * WebClient.cs: Modified argument checks to match MS, and wrap
exceptions in a WebException. Fixes bug #343064.
* WebClient.cs: Added tests for argument checks.

svn path=/trunk/mcs/; revision=90581
2007-12-03 19:09:56 +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
Paolo Molaro f51d258fc9 www.go-mono.com changed ip address.
svn path=/trunk/mcs/; revision=89456
2007-11-12 10:50:55 +00:00
Miguel de Icaza 520ed33718 Add test, fix regression
svn path=/trunk/mcs/; revision=88328
2007-10-27 18:43:15 +00:00
Miguel de Icaza 58228927a3 2007-10-27 Miguel de Icaza <[email protected]>
*  HttpListener.cs (Close): Closing does not mean dispose the
	object.   This allows Start/Stop/Start to be called as many times
	as desired.

	Fixes #337368

svn path=/trunk/mcs/; revision=88322
2007-10-27 17:44:16 +00:00
Gert Driesen 194dd39ccd * WebProxyTest.cs: Remove unused fields.
svn path=/trunk/mcs/; revision=87862
2007-10-21 09:32:47 +00:00
Gert Driesen b97ac2ba11 * WebRequestTest.cs: Fixed test for serialization ctor to match
1.0 profile change. Added trivial tests to argument null checks.
Added test for DefaultWebProxy. Fixed line endings.
* WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
profile. Cache default proxy, but still allow it to be explicitly set 
to null.

svn path=/trunk/mcs/; revision=87517
2007-10-15 15:46:36 +00:00
Gert Driesen e722420bd3 * HttpListenerRequest.cs: Do not store 'method' in upper case, but
instead use case-insensitive comparison.
* HttpListenerRequestTest.cs: Added test for HttpMethod.

svn path=/trunk/mcs/; revision=86673
2007-09-30 12:33:06 +00:00
Gert Driesen 9c722e666c Only applies to 2.0 profile.
svn path=/trunk/mcs/; revision=86668
2007-09-30 11:43:46 +00:00
Gert Driesen affbed9b01 * HttpListenerRequestTest.cs: Added test for HasEntityBody.
* HttpListener2Test.cs: Removed CWL.
* HttpListenerRequest.cs: Removed dead code. USe String.Length to
check for zero-length string. Use instance field for is_chunked, and
also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
when Content-Length > 0, or Transfer-Encoding is chunked.
* System_test.dll.sources: Added HttpListenerRequestTest.cs.

svn path=/trunk/mcs/; revision=86666
2007-09-30 09:09:22 +00:00
Atsushi Eno b21b41fb95 2007-08-29 Atsushi Enomoto <[email protected]>
* IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.

	* IPAddressTest.cs : added an address with scope id to parse/format
	  test.


svn path=/trunk/mcs/; revision=85016
2007-08-29 18:00:42 +00:00
Konstantin Triger 3b9df07221 TARGET_JVM: ServicePoint.BindIPEndPointDelegate is not supported
svn path=/trunk/mcs/; revision=84092
2007-08-14 16:16:18 +00:00