Closed
Description
This test failed in both a ToF run (N-from-K) as well as a Helix run. It is hard to know the failure reason, because it is the Assert.True(success) in the finally block that fires. Recommend the test explicitly catch and report an exception rather than Boolean so that it is clear where and why the 'success = true' statement is bypassed. The test is disabled in Linux-only for other reasons.
Running Test: NegotiateStream_Tcp_Tests.NegotiateStream_Tcp_AmbientCredentials
Assert.True:Credentials passed:
NegotiateTestRealm : 'DOMAIN.CONTOSO.COM'
NegotiateTestDomain : 'DOMAIN'
NegotiateTestUserName : 'testuser'
NegotiateTestPassword : 'hunter2'
NegotiateTestSpn : 'testhost.domain.contoso.com'
NegotiateTestUpn : 'testuser@DOMAIN.CONTOSO.COM'
Xunit.AssertTestException: Assert.True: Credentials passed:
NegotiateTestRealm : 'DOMAIN.CONTOSO.COM'
NegotiateTestDomain : 'DOMAIN'
NegotiateTestUserName : 'testuser'
NegotiateTestPassword : 'hunter2'
NegotiateTestSpn : 'testhost.domain.contoso.com'
NegotiateTestUpn : 'testuser@DOMAIN.CONTOSO.COM'
at Xunit.Assert.HandleFail(String assertionName, String message) in E:\ProjectK\src\QA\ToF\Tests\FX\Conformance\Common\Xunit\Assertion.cs:line 605
at Xunit.Assert.True(Boolean condition, String message) in E:\ProjectK\src\QA\ToF\Tests\FX\Conformance\Common\Xunit\Assertion.cs:line 147
at NegotiateStream_Tcp_Tests.NegotiateStream_Tcp_AmbientCredentials$fin$0() in E:\ProjectK\src\NDP\FxCore\WcfOpen\src\System.Private.ServiceModel\tests\Scenarios\Security\TransportSecurity\Negotiate\NegotiateStream_Tcp_Tests.cs:line 92
at EntryPointMain.<>c.
b__0_19() in E:\ProjectK\src\QA\ToF\PN\amd64\rel\IL\FX\Conformance\System.Private.ServiceModel\4.0.0.0\WcfOpen\Scenarios\Security\TransportSecurity\Security.TransportSecurity.Tests.main.cs:line 32
at Windows.Foundation.AsyncOperationProgressHandler$2.Invoke($IAsyncOperationWithProgress$2 asyncInfo, UInt32 progressInfo)
at CoreFXTestLibrary.Internal.Runner.RunTestMethod$catch$0() in E:\ProjectK\src\QA\ToF\Tests\FX\Conformance\Common\Xunit\Internal\Runner.cs:line 170
---- Test FAILED ---------------