diff --git a/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/Binding.Http.Tests.csproj b/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/Binding.Http.Tests.csproj index 97a326a8589..5e38bfd03fc 100644 --- a/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/Binding.Http.Tests.csproj +++ b/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/Binding.Http.Tests.csproj @@ -36,6 +36,10 @@ {9098B41C-9C2E-4FC6-B7D8-FC3411736A22} ScenarioTests.Common + + {AFD69665-89A3-42AE-A32E-AB2CBBE6EE7E} + Infrastructure.Common + diff --git a/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/NetHttpsBindingTests.cs b/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/NetHttpsBindingTests.cs index 615ca78a63c..591cf60e415 100644 --- a/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/NetHttpsBindingTests.cs +++ b/src/System.Private.ServiceModel/tests/Scenarios/Binding/Http/NetHttpsBindingTests.cs @@ -5,15 +5,13 @@ using System; using System.ServiceModel; -using System.ServiceModel.Channels; -using System.Text; -using System.Threading; -using System.Threading.Tasks; + +using Infrastructure.Common; using Xunit; -public static class Binding_Http_NetHttpsBindingTests +public class Binding_Http_NetHttpsBindingTests: ConditionalWcfTest { - [Fact] + [ConditionalFact(nameof(Root_Certificate_Installed))] [OuterLoop] [ActiveIssue(1123, PlatformID.AnyUnix)] public static void DefaultCtor_NetHttps_Echo_RoundTrips_String() @@ -77,7 +75,7 @@ public static void TransportWithMessageCredential_NotSupported_NetHttps() }); } - [Fact] + [ConditionalFact(nameof(Root_Certificate_Installed))] [OuterLoop] [ActiveIssue(1123, PlatformID.AnyUnix)] public static void NonDefaultCtor_NetHttps_Echo_RoundTrips_String() diff --git a/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/DuplexChannelShapeTests.4.0.0.cs b/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/DuplexChannelShapeTests.4.0.0.cs index da7b272b7fe..8cf3c51ed45 100644 --- a/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/DuplexChannelShapeTests.4.0.0.cs +++ b/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/DuplexChannelShapeTests.4.0.0.cs @@ -134,7 +134,7 @@ public static void IDuplexSessionChannel_Async_Tcp_NetTcpBinding() } } - [Fact] + [ConditionalFact(nameof(Root_Certificate_Installed))] [OuterLoop] [ActiveIssue(1123, PlatformID.AnyUnix)] public static void IRequestChannel_Https_NetHttpsBinding()