Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding primary scenario test for Issue #366 #459

Merged
merged 1 commit into from
Oct 28, 2015

Conversation

StephenBonikowsky
Copy link
Member

  • Added a property in BridgeClientCertificateManager to hold the thumbprint of the ClientCertificate so that a test case can get it.
  • Test sets the DnsEndpointIdentity to "localhost" which means this will only work when the Bridge and the test run on the same machine.
  • Hong has a PR that adds a resource to the Bridge that will return the server Identity. I will update this PR to use that Resource
    once her PR is merged, before I merge this one.
  • Test currently fails due to Issue System.InvalidOperationException : The client certificate is not provided. #458, added ActiveIssue

@@ -29,6 +29,8 @@ public static class BridgeClientCertificateManager
private const string ClientCertificateSubject = "WCF Client Certificate";
private const string ClientCertificatePassword = "test"; // this needs to be kept in sync with the Bridge configuration

public static string Thumbprint { get; private set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: it would be good for a more descriptive name or a comment to describe what this is. Could more than one test attempt to set this to different values?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to naming.

The cert should be consistent across one test run (i.e., one instance of the Bridge and configuration). If set by multiple tests, should mean that we continue to set it to the same value.

@roncain
Copy link
Contributor

roncain commented Oct 23, 2015

LGTM, subject to whether the NIT level questions cause any concern.

@@ -176,6 +178,9 @@ public static void InstallLocalCertificateFromBridge()
}
}

// Set the local variable with the thumbprint so a test case can use it.
Thumbprint = thumbprint;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving this further up where the PUT happens. We already know the cert thumbprint at that point.

@iamjasonp
Copy link
Member

LGTM

@iamjasonp
Copy link
Member

#458 is fixed. If you rebase on top of the changes, you should be fine running these tests now.

After rebase, can you please amend the commit to:

@roncain
Copy link
Contributor

roncain commented Oct 27, 2015

Looks like a rebase is required, but otherwise LGTM.
I'll try ToF runs after you merge if you don't get to it first.

* Added a property in BridgeClientCertificateManager to hold the thumbprint of the ClientCertificate so that a test case can get it.
* Update initial PR with feedback.
@StephenBonikowsky
Copy link
Member Author

Getting some errors in ToF, investigating.

@StephenBonikowsky
Copy link
Member Author

I'm getting three API failures from the one test...
'System.ServiceModel.Description.ClientCredentials.ServiceCertificate'
'System.ServiceModel.Description.ClientCredentials.ClientCertificate'
'System.ServiceModel.Security.X509CertificateValidationMode'

According to API Catalog all three are supported in NET Core as part of System.ServiceModel.Primitives version 4.1.0.0

I've tried updating wcfopen.settings.targets to explicitly use version 4.1.0.0 but it is getting overridden somehow.

@roncain or @iamjasonp @mconnew any ideas where we update the version of S.SM.Primitives for ToF runs?

@StephenBonikowsky
Copy link
Member Author

@hongdai isn't getting these errors, so I will sync and re-build my enlistment.

@StephenBonikowsky
Copy link
Member Author

I can't get K enlistment to build now, because I can confirm that all the types it is complaining about are actually in contract I am going to merge knowing that we have some kind of ToF infrastructure issue related to the version of S.SM.Primitives that is being pulled in.

StephenBonikowsky added a commit that referenced this pull request Oct 28, 2015
Adding primary scenario test for Issue #366
@StephenBonikowsky StephenBonikowsky merged commit 34c6951 into dotnet:master Oct 28, 2015
@StephenBonikowsky StephenBonikowsky deleted the Issue366 branch October 28, 2015 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants