Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorJonathan Peppers <jonathan.peppers@microsoft.com>2017-11-14 00:08:47 +0300
committerMarek Safar <marek.safar@gmail.com>2017-11-14 13:37:12 +0300
commita5248e5e1179923c1578e15f50753a7468764f75 (patch)
tree8c0c12061ba91600d4617812e91d531aaf460295 /mcs
parenta6c2080c241b2e1fb546cd9dce4abdff8e71e2a8 (diff)
[bcl] bringing back InetAccess test category
This partially reverts 9b4b6d621101fdf06e41b0f76b1ad50b0d1149f2 Xamarin.Android’s QA team has a need to run on-device tests in cases where the device does not have an internet connection. I also marked a few tests with `InetAccess` indicated from a past test run here: http://xqa.blob.core.windows.net/gist/log-1481cb7679ce4db0a305a551ff7f4e18.txt
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectoryEntryTest.cs1
-rw-r--r--mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectorySearcherTest.cs1
-rw-r--r--mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs1
-rw-r--r--mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/DiscoveryClientProtocolTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs2
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/SocketCas.cs6
-rwxr-xr-xmcs/class/System/Test/System.Net.Sockets/SocketTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs3
-rw-r--r--mcs/class/System/Test/System.Net/DnsTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net/HttpWebRequestTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net/ServicePointManagerTest.cs4
-rw-r--r--mcs/class/System/Test/System.Net/WebClientTest.cs1
-rw-r--r--mcs/class/System/Test/System.Net/WebClientTestAsync.cs5
-rw-r--r--mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ChainTest.cs1
16 files changed, 31 insertions, 1 deletions
diff --git a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectoryEntryTest.cs b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectoryEntryTest.cs
index 330a8d8a5e7..81e765d3e30 100644
--- a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectoryEntryTest.cs
+++ b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectoryEntryTest.cs
@@ -13,6 +13,7 @@ using System.DirectoryServices;
namespace MonoTests.System.DirectoryServices
{
[TestFixture]
+ [Category ("InetAccess")]
public class DirectoryServicesDirectoryEntryTest
{
#region Fields
diff --git a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectorySearcherTest.cs b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectorySearcherTest.cs
index 95ce2662c54..0481066b4fc 100644
--- a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectorySearcherTest.cs
+++ b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesDirectorySearcherTest.cs
@@ -15,6 +15,7 @@ using System.Threading;
namespace MonoTests.System.DirectoryServices
{
[TestFixture]
+ [Category ("InetAccess")]
public class DirectoryServicesDirectorySearcherTest
{
#region Fields
diff --git a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs
index 21aa253301b..94c0418ecc5 100644
--- a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs
+++ b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs
@@ -13,6 +13,7 @@ using System.DirectoryServices;
namespace MonoTests.System.DirectoryServices
{
[TestFixture]
+ [Category ("InetAccess")]
public class DirectoryServicesSearchResultTest
{
#region Fields
diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/DiscoveryClientProtocolTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/DiscoveryClientProtocolTest.cs
index 13a357274ae..7aaa0277b93 100644
--- a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/DiscoveryClientProtocolTest.cs
+++ b/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/DiscoveryClientProtocolTest.cs
@@ -19,6 +19,7 @@ namespace MonoTests.System.Web.Services.Discovery {
[Test] // Covers #36116
[Category ("NotWorking")]
+ [Category ("InetAccess")]
public void ReadWriteTest ()
{
string directory = Path.Combine (Path.GetTempPath (), Path.GetRandomFileName ());
diff --git a/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs b/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs
index 51752302b20..7e693d4e1d2 100644
--- a/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs
+++ b/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs
@@ -74,6 +74,7 @@ namespace MonoTests.System.Net.NetworkInformation
}
[Test]
+ [Category ("InetAccess")]
public void AtLeastOneGatewayAddress ()
{
int numGatewayAddresses = 0;
diff --git a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
index 3e33097d1fc..6747a263a6c 100644
--- a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
@@ -97,6 +97,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncRead ()
{
message = "AsyncRead";
@@ -135,6 +136,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncWrite ()
{
message = "AsyncWrite";
diff --git a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
index 0af239d238c..37295cf49c7 100644
--- a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
@@ -16,6 +16,7 @@ using NUnit.Framework;
namespace MonoTests.System.Net.Sockets
{
[TestFixture]
+ [Category ("InetAccess")]
public class NetworkStreamTest
{
[Test]
diff --git a/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs b/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
index 1b4458c4f13..6319d3e7b94 100644
--- a/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
@@ -78,6 +78,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncAccept ()
{
IPEndPoint ep = new IPEndPoint (IPAddress.Loopback, 16279);
@@ -117,6 +118,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncConnect ()
{
message = "AsyncConnect";
@@ -150,6 +152,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncReceive ()
{
message = "AsyncReceive";
@@ -188,6 +191,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncReceiveFrom ()
{
message = "AsyncReceiveFrom";
@@ -226,6 +230,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncSend ()
{
message = "AsyncSend";
@@ -260,6 +265,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncSendTo ()
{
message = "AsyncSendTo";
diff --git a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
index a6abbf59745..a7fb500cd3e 100755
--- a/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
@@ -86,6 +86,7 @@ namespace MonoTests.System.Net.Sockets
[Test]
[Category ("NotWorking")]
+ [Category ("InetAccess")]
#if FEATURE_NO_BSD_SOCKETS
[ExpectedException (typeof (PlatformNotSupportedException))]
#endif
diff --git a/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs b/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
index fbc08e1f0f5..a1db66c9e64 100644
--- a/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
@@ -70,6 +70,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncConnect_StringIntAsyncCallbackObject ()
{
TcpClient s = new TcpClient ();
@@ -84,6 +85,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncConnect_IPAddressIntAsyncCallbackObject ()
{
IPHostEntry host = Dns.Resolve ("www.google.com");
@@ -99,6 +101,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Test]
[EnvironmentPermission (SecurityAction.Deny, Read = "USERNAME")]
+ [Category ("InetAccess")]
public void AsyncConnect_IPAddressArrayIntAsyncCallbackObject ()
{
IPHostEntry host = Dns.Resolve ("www.google.com");
diff --git a/mcs/class/System/Test/System.Net/DnsTest.cs b/mcs/class/System/Test/System.Net/DnsTest.cs
index ebafede8759..6fba07a8a17 100644
--- a/mcs/class/System/Test/System.Net/DnsTest.cs
+++ b/mcs/class/System/Test/System.Net/DnsTest.cs
@@ -19,6 +19,7 @@ using NUnit.Framework;
namespace MonoTests.System.Net
{
[TestFixture]
+ [Category ("InetAccess")]
public class DnsTest
{
private String site1Name = "google-public-dns-a.google.com",
diff --git a/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs b/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
index 38359efd4de..4cabb0ca84e 100644
--- a/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
+++ b/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
@@ -63,6 +63,7 @@ namespace MonoTests.System.Net
}
[Test]
+ [Category("InetAccess")]
#if FEATURE_NO_BSD_SOCKETS
[ExpectedException (typeof (PlatformNotSupportedException))]
#endif
@@ -134,6 +135,7 @@ namespace MonoTests.System.Net
}
[Test]
+ [Category("InetAccess")]
[Category ("NotWorking")] // Disabled until a server that meets requirements is found
public void Cookies1 ()
{
diff --git a/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs b/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
index 2ed577e5df8..a7762218306 100644
--- a/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
+++ b/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
@@ -48,6 +48,7 @@ public class ServicePointManagerTest
[Test, ExpectedException (typeof (InvalidOperationException))]
[Category ("NotWorking")]
+ [Category ("InetAccess")]
public void MaxServicePointManagers ()
{
Assert.AreEqual (0, ServicePointManager.MaxServicePoints, "#1");
@@ -85,7 +86,8 @@ public class ServicePointManagerTest
//WriteServicePoint (sp);
}
- [Test]
+ [Test]
+ [Category ("InetAccess")]
#if FEATURE_NO_BSD_SOCKETS
[ExpectedException (typeof (PlatformNotSupportedException))]
#endif
diff --git a/mcs/class/System/Test/System.Net/WebClientTest.cs b/mcs/class/System/Test/System.Net/WebClientTest.cs
index 51c3b53296f..71d40d51895 100644
--- a/mcs/class/System/Test/System.Net/WebClientTest.cs
+++ b/mcs/class/System/Test/System.Net/WebClientTest.cs
@@ -46,6 +46,7 @@ namespace MonoTests.System.Net
#if FEATURE_NO_BSD_SOCKETS
[ExpectedException (typeof (WebException))] // Something catches the PlatformNotSupportedException and re-throws an WebException
#endif
+ [Category ("InetAccess")]
public void DownloadTwice ()
{
WebClient wc = new WebClient();
diff --git a/mcs/class/System/Test/System.Net/WebClientTestAsync.cs b/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
index 7465911bfc5..e712d410b89 100644
--- a/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
+++ b/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
@@ -82,6 +82,7 @@ namespace MonoTests.System.Net
#if FEATURE_NO_BSD_SOCKETS
[ExpectedException (typeof (AggregateException))] // Something catches the PlatformNotSupportedException and re-throws an AggregateException
#endif
+ [Category("InetAccess")]
public void DownloadFileTaskAsync ()
{
WebClient wc = new WebClient ();
@@ -96,6 +97,7 @@ namespace MonoTests.System.Net
[Test]
[Category ("NotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
+ [Category("InetAccess")]
public void Cancellation ()
{
WebClient wc = new WebClient ();
@@ -123,6 +125,7 @@ namespace MonoTests.System.Net
[Test]
[Category ("NotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
+ [Category("InetAccess")]
public void DownloadMultiple ()
{
WebClient wc = new WebClient ();
@@ -140,6 +143,7 @@ namespace MonoTests.System.Net
}
[Test]
+ [Category ("InetAccess")]
[Category ("NotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
public void DownloadMultiple2 ()
{
@@ -152,6 +156,7 @@ namespace MonoTests.System.Net
}
[Test]
+ [Category ("InetAccess")]
[Category ("NotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
public void DownloadMultiple3 ()
{
diff --git a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ChainTest.cs b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ChainTest.cs
index 1a3c6fe43cc..026cfc2757a 100644
--- a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ChainTest.cs
+++ b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509ChainTest.cs
@@ -205,6 +205,7 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
}
[Test]
+ [Category ("InetAccess")]
public void Build_Cert1_X509RevocationMode_Online ()
{
X509Chain c = new X509Chain ();