This test requires a simple single mapping for Hostname<->IP with one IP and reverse DNS. Using EC2-hosted sites doesn't work as they don't have valid reverse DNS. Use the Jenkins subdomain, since that fits the criteria.
The latter is now hosted on a different IP behind a CDN and the IP may change depending on location.
Using xamarin.com instead fixes the tests for now.
Test Case Failures:
1) MonoTests.System.Net.DnsTest.GetHostByName : Should raise a SocketException (assuming that 'www.unlikely.novell.com' does not exist)
at MonoTests.System.Net.DnsTest.GetHostByName () [0x00089] in /Users/jon/Development/mono-HEAD/mono/mcs/class/System/Test/System.Net/DnsTest.cs:212
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/jon/Development/mono-HEAD/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
As it happens, 'www.unlikely.novell.com' DOES exist:
$ ping www.unlikely.novell.com
PING www.unlikely.novell.com (199.101.28.20): 56 data bytes
64 bytes from 199.101.28.20: icmp_seq=0 ttl=57 time=29.399 ms
Apparently it's due to the "www." prefix; remove "www." and the site
isn't found, as expected:
$ ping unlikely.novell.com
ping: cannot resolve unlikely.novell.com: Unknown host
Update DnsTest.noneExistingSite so that the DnsTest.GetHostByName()
test passes.
* configure.in: Add check for getifaddrs().
* socket-io.c: Implement get_local_ips() using getifaddrs()
if SIOCGIFCONF is not available.
* DnsTest.cs: Add GetHostEmpty_StringEmpty().
* UdpClientTest.cs(): Enable Available(), BeginReceive() and BeginSend()
on the Mac.
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
* DnsCas.cs: New. CAS unit tests for Dns.
* DnsTest.cs: Fixed the wrong End* method being used in AsyncResolve.
* FileWebRequestCas.cs: New. CAS unit tests for FileWebRequest.
* HttpWebRequestCas.cs: New. CAS unit tests for HttpWebRequest.
* WebRequestTest.cs: Added tests to validate exceptions.
svn path=/trunk/mcs/; revision=44754
* DnsTest.cs: Update with new IP address for www.go-mono.com and make
test failure output more informative. All Tests pass for me on
.NET 1.1.
* HttpWebRequestTest.cs: Get rid of WriteLines and use Asserts to make
it a proper unit test.
svn path=/trunk/mcs/; revision=21556
* System_test.build: Build new executable RunTests.System.exe which you can
use to run the tests on Linux.
* NameValueCollectionTest.cs: Split out BasicOperationTest into
BasicOperationTest.cs.
* AllTests.cs: Use namespace Ximian.Mono.Tests.System instead of
Ximian.Mono.Tests.
* DnsTest.cs: Put this into namespace Ximian.Mono.Tests.Systeam.
* NameValueCollectionTest.cs: Likewise.
* StringCollectionTest.cs: Likewise.
svn path=/trunk/mcs/; revision=2732
of excludes, and now we actually build things.
2002-01-17 Miguel de Icaza <[email protected]>
* Win32Exception.cs: Add.
2002-01-17 Miguel de Icaza <[email protected]>
* TraceListenerCollection.cs: Remove Warnings.
2002-01-17 Miguel de Icaza <[email protected]>
* Dns.cs: Updated to API changes.
* IPAddress.cs: Updated API. Much left to implement.
* Dns.cs: Remove IPToString method
2002-01-17 Miguel de Icaza <[email protected]>
* SocketException.cs: Reimplemented.
svn path=/trunk/mcs/; revision=2023