Skip to content

Commit

Permalink
Merge pull request dotnet#461 from iamjasonp/fix-tcpclientcred-test
Browse files Browse the repository at this point in the history
Enable TCP client credential test
  • Loading branch information
iamjasonp committed Oct 27, 2015
2 parents c78ef64 + 045d9b2 commit 87b0d51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ public static string Tcp_NoSecurity_XmlDuplexCallback_Address
{
get { return BridgeClient.GetResourceAddress("WcfService.TestResources.DuplexCallbackXmlComplexTypeResource"); }
}



public static string Tcp_CustomBinding_SslStreamSecurity_Address
{
get
Expand All @@ -191,4 +192,12 @@ public static string Tcp_CustomBinding_SslStreamSecurity_Address
return BridgeClient.GetResourceAddress("WcfService.TestResources.TcpTransportSecurityWithSslResource");
}
}

public static string Tcp_CustomBinding_SslStreamSecurity_HostName
{
get
{
return BridgeClient.GetResourceHostName("WcfService.TestResources.TcpTransportSecurityWithSslResource");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public static void SameBinding_SecurityModeTransport_EchoString()
// Simple echo of a string using a CustomBinding to mimic a NetTcpBinding with Security.Mode = TransportWithMessageCredentials
// This does not exactly match the binding elements in a NetTcpBinding which also includes a TransportSecurityBindingElement
[Fact]
[ActiveIssue(310)]
[OuterLoop]
public static void SameBinding_SecurityModeTransport_ClientCredentialTypeCertificate_EchoString()
{
Expand All @@ -108,7 +107,8 @@ public static void SameBinding_SecurityModeTransport_ClientCredentialTypeCertifi
new BinaryMessageEncodingBindingElement(),
new TcpTransportBindingElement());

factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.Tcp_CustomBinding_SslStreamSecurity_Address));
var endpointIdentity = new DnsEndpointIdentity(Endpoints.Tcp_CustomBinding_SslStreamSecurity_HostName);
factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(new Uri(Endpoints.Tcp_CustomBinding_SslStreamSecurity_Address), endpointIdentity));

IWcfService serviceProxy = factory.CreateChannel();

Expand Down

0 comments on commit 87b0d51

Please sign in to comment.