Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Test cleanup for System.Net.Security #15952

Merged
merged 3 commits into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 0 additions & 89 deletions src/Common/tests/System/Threading/Tasks/TaskAPMExtensions.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,25 @@ public ClientAsyncAuthenticateTest()
_log = TestLogging.GetInstance();
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientAsyncAuthenticate_ServerRequireEncryption_ConnectWithEncryption()
{
await ClientAsyncSslHelper(EncryptionPolicy.RequireEncryption);
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientAsyncAuthenticate_ServerNoEncryption_NoConnect()
{
await Assert.ThrowsAsync<IOException>(() => ClientAsyncSslHelper(EncryptionPolicy.NoEncryption));
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.SupportedSslProtocolsTestData))]
public async Task ClientAsyncAuthenticate_EachSupportedProtocol_Success(SslProtocols protocol)
{
await ClientAsyncSslHelper(protocol, protocol);
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.UnsupportedSslProtocolsTestData))]
public async Task ClientAsyncAuthenticate_EachClientUnsupportedProtocol_Fail(SslProtocols protocol)
Expand All @@ -57,7 +53,6 @@ await Assert.ThrowsAsync<NotSupportedException>(() =>
});
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[MemberData(nameof(ProtocolMismatchData))]
public async Task ClientAsyncAuthenticate_MismatchProtocols_Fails(
Expand All @@ -68,7 +63,6 @@ public async Task ClientAsyncAuthenticate_MismatchProtocols_Fails(
await Assert.ThrowsAsync(expectedException, () => ClientAsyncSslHelper(serverProtocol, clientProtocol));
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientAsyncAuthenticate_AllServerAllClient_Success()
{
Expand All @@ -77,7 +71,6 @@ await ClientAsyncSslHelper(
SslProtocolSupport.SupportedSslProtocols);
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientAsyncAuthenticate_UnsupportedAllClient_Fail()
{
Expand All @@ -89,7 +82,6 @@ await Assert.ThrowsAsync<NotSupportedException>(() =>
});
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.SupportedSslProtocolsTestData))]
public async Task ClientAsyncAuthenticate_AllServerVsIndividualClientSupportedProtocols_Success(
Expand All @@ -98,7 +90,6 @@ public async Task ClientAsyncAuthenticate_AllServerVsIndividualClientSupportedPr
await ClientAsyncSslHelper(clientProtocol, SslProtocolSupport.SupportedSslProtocols);
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.SupportedSslProtocolsTestData))]
public async Task ClientAsyncAuthenticate_IndividualServerVsAllClientSupportedProtocols_Success(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public bool AllowAnyServerCertificate(
return true; // allow everything
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientDefaultEncryption_ServerRequireEncryption_ConnectWithEncryption()
{
Expand All @@ -54,7 +53,6 @@ public async Task ClientDefaultEncryption_ServerRequireEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientDefaultEncryption_ServerAllowNoEncryption_ConnectWithEncryption()
{
Expand All @@ -75,7 +73,6 @@ public async Task ClientDefaultEncryption_ServerAllowNoEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ClientDefaultEncryption_ServerNoEncryption_NoConnect()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public void EventSource_ExistsWithCorrectId()
Assert.NotEmpty(EventSource.GenerateManifest(esType, esType.Assembly.Location));
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void EventSource_EventsRaisedAsExpected()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public abstract class NegotiateStreamStreamToStreamTest
protected abstract Task AuthenticateAsClientAsync(NegotiateStream client, NetworkCredential credential, string targetName);
protected abstract Task AuthenticateAsServerAsync(NegotiateStream server);

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Authentication_Success()
{
Expand Down Expand Up @@ -72,7 +71,6 @@ public void NegotiateStream_StreamToStream_Authentication_Success()
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Authentication_TargetName_Success()
{
Expand Down Expand Up @@ -127,7 +125,6 @@ public void NegotiateStream_StreamToStream_Authentication_TargetName_Success()
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails()
{
Expand Down Expand Up @@ -191,7 +188,6 @@ public void NegotiateStream_StreamToStream_Authentication_EmptyCredentials_Fails
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Successive_ClientWrite_Sync_Success()
{
Expand Down Expand Up @@ -225,7 +221,6 @@ public void NegotiateStream_StreamToStream_Successive_ClientWrite_Sync_Success()
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Successive_ClientWrite_Async_Success()
{
Expand Down Expand Up @@ -262,7 +257,6 @@ public void NegotiateStream_StreamToStream_Successive_ClientWrite_Async_Success(
}


[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_Flush_Propagated()
{
Expand All @@ -277,7 +271,6 @@ public void NegotiateStream_StreamToStream_Flush_Propagated()
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public void NegotiateStream_StreamToStream_FlushAsync_Propagated()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public KDCSetup()
{
Dispose();
}
_successfulSetup = false; // TODO: https://github.com/dotnet/corefx/issues/12107
_successfulSetup = false;
}
}
else
Expand Down Expand Up @@ -569,7 +569,6 @@ public void NegotiateStream_StreamToStream_NtlmAuthentication_ValidCredentials_S


[Fact, OuterLoop]
[ActiveIssue(7825)]
[PlatformSpecific(TestPlatforms.Linux)]
public void NegotiateStream_StreamToStream_NtlmAuthentication_Fallback_Success()
{
Expand Down Expand Up @@ -660,7 +659,6 @@ public void NegotiateStream_StreamToStream_NtlmAuthentication_KerberosCreds_Succ
}

[Fact, OuterLoop]
[ActiveIssue(7825)]
[PlatformSpecific(TestPlatforms.Linux)]
public void NegotiateStream_EchoServer_NTLM_ClientWriteRead_Successive_Sync_Success()
{
Expand Down Expand Up @@ -709,7 +707,6 @@ public void NegotiateStream_EchoServer_NTLM_ClientWriteRead_Successive_Sync_Succ
}

[Fact, OuterLoop]
[ActiveIssue(7825)]
[PlatformSpecific(TestPlatforms.Linux)]
public void NegotiateStream_EchoServer_NTLM_ClientWriteRead_Successive_Async_Success()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public bool AllowAnyServerCertificate(
return true; // allow everything
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerAllowNoEncryption_ClientRequireEncryption_ConnectWithEncryption()
{
Expand All @@ -53,7 +52,6 @@ public async Task ServerAllowNoEncryption_ClientRequireEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerAllowNoEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
{
Expand All @@ -74,7 +72,6 @@ public async Task ServerAllowNoEncryption_ClientAllowNoEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[ConditionalFact(nameof(SupportsNullEncryption))]
public async Task ServerAllowNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ public void Dispose()
_serverCertificate.Dispose();
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.SupportedSslProtocolsTestData))]
public async Task ServerAsyncAuthenticate_EachSupportedProtocol_Success(SslProtocols protocol)
{
await ServerAsyncSslHelper(protocol, protocol);
}

[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.UnsupportedSslProtocolsTestData))]
public async Task ServerAsyncAuthenticate_EachServerUnsupportedProtocol_Fail(SslProtocols protocol)
Expand All @@ -57,8 +55,6 @@ await Assert.ThrowsAsync<NotSupportedException>(() =>
});
}

[OuterLoop] // TODO: Issue #11345
[ActiveIssue(11170)]
[Theory]
[MemberData(nameof(ProtocolMismatchData))]
public async Task ServerAsyncAuthenticate_MismatchProtocols_Fails(
Expand All @@ -77,7 +73,6 @@ await Assert.ThrowsAsync(
});
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerAsyncAuthenticate_UnsupportedAllServer_Fail()
{
Expand All @@ -90,8 +85,6 @@ await Assert.ThrowsAsync<NotSupportedException>(() =>
});
}

[ActiveIssue(8744)]
[OuterLoop] // TODO: Issue #11345
[Theory]
[ClassData(typeof(SslProtocolSupport.SupportedSslProtocolsTestData))]
public async Task ServerAsyncAuthenticate_AllClientVsIndividualServerSupportedProtocols_Success(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public bool AllowAnyServerCertificate(
return true; // allow everything
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerNoEncryption_ClientRequireEncryption_NoConnect()
{
Expand All @@ -50,7 +49,6 @@ await Assert.ThrowsAsync<IOException>(() =>
}
}

[OuterLoop] // TODO: Issue #11345
[ConditionalFact(nameof(SupportsNullEncryption))]
public async Task ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryption()
{
Expand All @@ -74,7 +72,6 @@ public async Task ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryp
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public bool AllowAnyServerCertificate(
return true; // allow everything
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerRequireEncryption_ClientRequireEncryption_ConnectWithEncryption()
{
Expand All @@ -53,7 +52,6 @@ public async Task ServerRequireEncryption_ClientRequireEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[Fact]
public async Task ServerRequireEncryption_ClientAllowNoEncryption_ConnectWithEncryption()
{
Expand All @@ -74,7 +72,6 @@ public async Task ServerRequireEncryption_ClientAllowNoEncryption_ConnectWithEnc
}
}

[OuterLoop] // TODO: Issue #11345
[ConditionalFact(nameof(SupportsNullEncryption))]
public async Task ServerRequireEncryption_ClientNoEncryption_NoConnect()
{
Expand Down
Loading