C:\h\w\A27B0944\w\9FC80921\e>"C:\h\w\A27B0944\p\dotnet.exe" exec --runtimeconfig System.Net.Security.Tests.runtimeconfig.json --depsfile System.Net.Security.Tests.deps.json xunit.console.dll System.Net.Security.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
Discovering: System.Net.Security.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Net.Security.Tests (found 440 of 472 test cases)
Starting: System.Net.Security.Tests (parallel test collections = on, max threads = 2)
System.Net.Security.Tests.SslStreamEKUTest.SslStream_SelfSignedClientEKUClientAuth_Ok [SKIP]
Condition(s) not met: "IsRootCertificateInstalled"
System.Net.Security.Tests.SslStreamEKUTest.SslStream_ServerEKUClientAuth_Fails [SKIP]
Condition(s) not met: "IsRootCertificateInstalled"
System.Net.Security.Tests.SslStreamEKUTest.SslStream_ClientEKUServerAuth_Fails [SKIP]
Condition(s) not met: "IsRootCertificateInstalled"
System.Net.Security.Tests.SslStreamEKUTest.SslStream_NoEKUServerAuth_Ok [SKIP]
Condition(s) not met: "IsRootCertificateInstalled"
System.Net.Security.Tests.SslStreamEKUTest.SslStream_NoEKUClientAuth_Ok [SKIP]
Condition(s) not met: "IsRootCertificateInstalled"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_OnlyTls13CipherSuiteAllowedButChosenProtocolsDoesNotAllowIt_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicyAndTls13Supported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_OnlyNonTls13CipherSuiteAllowedButOtherSideDoesNotAllowIt_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowSameTwoOnBothSidesLessPreferredIsTls13_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowSomeCipherSuitesWithNoEncryptionOption_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_OnlyNonTls13CipherSuitesAllowedButChosenProtocolDoesNotAllowIt_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_ThreeCipherSuitesWithTwoOverlapping_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowedCipherSuitesIncludesSubsetOfInput_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowOneOnOneSideTls13_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicyAndTls13Supported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowTwoOnBothSidesWithSingleOverlapNonTls13_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_TwoCipherSuitesWithAllOverlapping_Success [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_AllowTwoOnBothSidesWithNoOverlapNonTls13_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_OnlyTls13CipherSuiteAllowedOtherSideDoesNotAllowTls13_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicyAndTls13Supported"
System.Net.Security.Tests.NegotiatedCipherSuiteTest.CipherSuitesPolicy_NothingAllowed_Fails [SKIP]
Condition(s) not met: "CipherSuitesPolicySupported"
System.Net.Security.Tests.ApmSslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(clientProtocols: Tls13, serverProtocols: null) [FAIL]
System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
---- System.ComponentModel.Win32Exception : The Local Security Authority cannot be contacted
Stack Trace:
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(418,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
/_/src/libraries/Common/src/System/Threading/Tasks/TaskToApm.cs(41,0): at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs(211,0): at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/FutureFactory.cs(544,0): at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamSystemDefaultsTest.cs(86,0): at System.Net.Security.Tests.SslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(Nullable`1 clientProtocols, Nullable`1 serverProtocols)
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
System.Net.Security.Tests.SyncSslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(clientProtocols: Tls13, serverProtocols: null) [FAIL]
System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
---- System.ComponentModel.Win32Exception : The Local Security Authority cannot be contacted
Stack Trace:
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(418,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs(296,0): at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.cs(282,0): at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamSystemDefaultsTest.cs(178,0): at System.Net.Security.Tests.SyncSslStreamSystemDefaultTest.<>c__DisplayClass0_0.<AuthenticateClientAsync>b__0()
/_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(294,0): at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2363,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamSystemDefaultsTest.cs(86,0): at System.Net.Security.Tests.SslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(Nullable`1 clientProtocols, Nullable`1 serverProtocols)
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
System.Net.Security.Tests.AsyncSslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(clientProtocols: Tls13, serverProtocols: null) [FAIL]
System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
---- System.ComponentModel.Win32Exception : The Local Security Authority cannot be contacted
Stack Trace:
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(418,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamSystemDefaultsTest.cs(86,0): at System.Net.Security.Tests.SslStreamSystemDefaultTest.ClientAndServer_OneOrBothUseDefault_Ok(Nullable`1 clientProtocols, Nullable`1 serverProtocols)
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
System.Net.Security.Tests: [Long Running Test] 'System.Net.Security.Tests.SslStreamNetworkStreamTest.SslStream_NegotiateClientCertificateAsyncTls13_Succeeds', Elapsed: 00:02:40
System.Net.Security.Tests.SslStreamNetworkStreamTest.SslStream_NegotiateClientCertificateAsyncTls13_Succeeds(sendClientCertificate: True) [FAIL]
System.OperationCanceledException : The operation was canceled.
Stack Trace:
/_/src/libraries/Common/src/System/Net/StreamBuffer.cs(339,0): at System.IO.StreamBuffer.ResettableValueTaskSource.CancelWaiter(CancellationToken cancellationToken)
/_/src/libraries/Common/src/System/Net/StreamBuffer.cs(364,0): at System.IO.StreamBuffer.ResettableValueTaskSource.<>c.<WaitAsync>b__10_0(Object s, CancellationToken token)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs(889,0): at System.Threading.CancellationTokenSource.Invoke(Delegate d, Object state, CancellationTokenSource source)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs(1119,0): at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback()
/_/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs(711,0): at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs(625,0): at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs(35,0): at System.Threading.CancellationTokenSource.TimerCallback(Object state)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs(662,0): at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs(326,0): at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.UnmanagedThreadPoolWorkItem.ExecuteUnmanagedThreadPoolWorkItem(IntPtr callback, IntPtr state)
at System.Threading.UnmanagedThreadPoolWorkItem.ExecuteUnmanagedThreadPoolWorkItem(IntPtr callback, IntPtr state)
/_/src/coreclr/System.Private.CoreLib/src/System/Threading/ThreadPool.CoreCLR.cs(160,0): at System.Threading.UnmanagedThreadPoolWorkItem.System.Threading.IThreadPoolWorkItem.Execute()
/_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs(695,0): at System.Threading.ThreadPoolWorkQueue.Dispatch()
/_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs(77,0): at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
/_/src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs(105,0): at System.Threading.Thread.StartCallback()
--- End of stack trace from previous location ---
/_/src/libraries/Common/src/System/Net/StreamBuffer.cs(322,0): at System.IO.StreamBuffer.ResettableValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
/_/src/libraries/Common/src/System/Net/StreamBuffer.cs(258,0): at System.IO.StreamBuffer.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(1099,0): at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|187_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(462,0): at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(304,0): at System.Net.Security.SslStream.RenegotiateAsync[TIOAdapter](TIOAdapter adapter)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs(464,0): at System.Net.Security.Tests.SslStreamNetworkStreamTest.SslStream_NegotiateClientCertificateAsyncTls13_Succeeds(Boolean sendClientCertificate)
--- End of stack trace from previous location ---
Finished: System.Net.Security.Tests
=== TEST EXECUTION SUMMARY ===
System.Net.Security.Tests Total: 5158, Errors: 0, Failed: 4, Skipped: 18, Time: 250.919s
----- end Thu 09/09/2021 22:24:52.75 ----- exit code 1 ----------------------------------------------------------
Also note the time this took: 250s.
Build: https://dev.azure.com/dnceng/public/_build/results?buildId=1353292&view=ms.vss-test-web.build-test-results-tab&runId=39586706&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab&resultId=167012
Configuration:
net7.0-windows-Debug-x64-CoreCLR_release-Windows.11.Amd64.ClientPre.OpenAlso note the time this took: 250s.
cc @dotnet/ncl @karelz @am11
Details
Runfo Tracking Issue: system.net.security.tests.apmsslstreamsystemdefaulttest.clientandserver_oneorbothusedefault_ok
Displaying 100 of 272 results
Build Result Summary