File tree 4 files changed +29
-2
lines changed
src/libraries/System.Net.Security/tests/FunctionalTests 4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 5
5
using System . Diagnostics ;
6
6
using System . Diagnostics . Tracing ;
7
7
using Microsoft . DotNet . RemoteExecutor ;
8
+ using Microsoft . DotNet . XUnitExtensions ;
8
9
using Xunit ;
9
10
10
11
namespace System . Net . Security . Tests
@@ -26,6 +27,12 @@ public void EventSource_ExistsWithCorrectId()
26
27
[ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
27
28
public void EventSource_EventsRaisedAsExpected ( )
28
29
{
30
+ if ( PlatformDetection . IsWindows10Version22000OrGreater )
31
+ {
32
+ // [ActiveIssue("https://github.com/dotnet/runtime/issues/58927")]
33
+ throw new SkipTestException ( "Unstable on Windows 11" ) ;
34
+ }
35
+
29
36
RemoteExecutor . Invoke ( ( ) =>
30
37
{
31
38
using ( var listener = new TestEventListener ( "Private.InternalDiagnostics.System.Net.Security" , EventLevel . Verbose ) )
Original file line number Diff line number Diff line change @@ -413,6 +413,12 @@ await Assert.ThrowsAsync<InvalidOperationException>(()=>
413
413
[ PlatformSpecific ( TestPlatforms . Windows ) ]
414
414
public async Task SslStream_NegotiateClientCertificateAsyncTls13_Succeeds ( bool sendClientCertificate )
415
415
{
416
+ if ( PlatformDetection . IsWindows10Version22000OrGreater )
417
+ {
418
+ // [ActiveIssue("https://github.com/dotnet/runtime/issues/58927")]
419
+ throw new SkipTestException ( "Unstable on Windows 11" ) ;
420
+ }
421
+
416
422
bool negotiateClientCertificateCalled = false ;
417
423
using CancellationTokenSource cts = new CancellationTokenSource ( ) ;
418
424
cts . CancelAfter ( TestConfiguration . PassingTestTimeout ) ;
Original file line number Diff line number Diff line change 11
11
using System . Text ;
12
12
using System . Threading ;
13
13
using System . Threading . Tasks ;
14
+ using Microsoft . DotNet . XUnitExtensions ;
14
15
using Xunit ;
15
16
16
17
namespace System . Net . Security . Tests
@@ -66,11 +67,18 @@ public static IEnumerable<object[]> SslStream_StreamToStream_Authentication_Succ
66
67
}
67
68
}
68
69
69
- [ Theory ]
70
+ [ ConditionalTheory ]
70
71
[ MemberData ( nameof ( SslStream_StreamToStream_Authentication_Success_MemberData ) ) ]
71
72
[ SkipOnPlatform ( TestPlatforms . iOS | TestPlatforms . tvOS , "X509 certificate store is not supported on iOS or tvOS." ) ]
72
73
public async Task SslStream_StreamToStream_Authentication_Success ( X509Certificate serverCert = null , X509Certificate clientCert = null )
73
74
{
75
+
76
+ if ( PlatformDetection . IsWindows10Version22000OrGreater )
77
+ {
78
+ // [ActiveIssue("https://github.com/dotnet/runtime/issues/58927")]
79
+ throw new SkipTestException ( "Unstable on Windows 11" ) ;
80
+ }
81
+
74
82
( Stream stream1 , Stream stream2 ) = TestHelper . GetConnectedStreams ( ) ;
75
83
using ( var client = new SslStream ( stream1 , false , AllowAnyServerCertificate ) )
76
84
using ( var server = new SslStream ( stream2 , false , delegate { return true ; } ) )
Original file line number Diff line number Diff line change 8
8
using System . Security . Cryptography . X509Certificates ;
9
9
using System . Security . Authentication ;
10
10
using System . Threading . Tasks ;
11
-
11
+ using Microsoft . DotNet . XUnitExtensions ;
12
12
using Xunit ;
13
13
14
14
namespace System . Net . Security . Tests
@@ -76,6 +76,12 @@ public static IEnumerable<object[]> OneOrBothUseDefaulData()
76
76
[ MemberData ( nameof ( OneOrBothUseDefaulData ) ) ]
77
77
public async Task ClientAndServer_OneOrBothUseDefault_Ok ( SslProtocols ? clientProtocols , SslProtocols ? serverProtocols )
78
78
{
79
+ if ( PlatformDetection . IsWindows10Version22000OrGreater )
80
+ {
81
+ // [ActiveIssue("https://github.com/dotnet/runtime/issues/58927")]
82
+ throw new SkipTestException ( "Unstable on Windows 11" ) ;
83
+ }
84
+
79
85
using ( X509Certificate2 serverCertificate = Configuration . Certificates . GetServerCertificate ( ) )
80
86
using ( X509Certificate2 clientCertificate = Configuration . Certificates . GetClientCertificate ( ) )
81
87
{
You can’t perform that action at this time.
0 commit comments