-
Notifications
You must be signed in to change notification settings - Fork 149
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
xWebSite: Choose cert with greatest validity #579
xWebSite: Choose cert with greatest validity #579
Conversation
Wow, is pester updated or something? I cannot see how this failed so badly in build when changing one line of code with Where-Object statements |
Yes, Pester 5 was released so we need to pin Pester to 4.10.1 here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ThomasHughesIV)
a discussion (no related file):
Can you please add a unit test (or change an existing) so that the correct certificate is chosen?
Yes, I can do that. I think. I'm still new to all of this. |
Ping me if I can help in some way. |
I appreciate that, thank you. This might take some time, as I'm trying to determine how certs are generated by pester (and learn pester at the same time) |
In a unit test you mock cmdlets/functions with Pester. So you mock what a cmdlet should return. So if you have a function let say Example below. Not sure this is the correct way to mock the certificate in this case but gives you an idea.
|
We have renamed the resource, removing 'x', so please rebase this PR. |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
and comment-based help.
This change is