-
Notifications
You must be signed in to change notification settings - Fork 54
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
xClusterNetwork: Fix Role property never in desired state #176
xClusterNetwork: Fix Role property never in desired state #176
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #176 +/- ##
===================================
Coverage 100% 100%
===================================
Files 7 7
Lines 434 437 +3
===================================
+ Hits 434 437 +3 |
Reviewed 1 of 3 files at r1. DSCResources/MSFT_xClusterNetwork/MSFT_xClusterNetwork.psm1, line 40 at r1 (raw file):
Please see issue #175 for a suggestion that does need to try-catch a conversion. Would that be a better solution? Comments from Reviewable |
Added new test for the WS2016 role property Review status: 1 of 3 files reviewed at latest revision, 1 unresolved discussion. DSCResources/MSFT_xClusterNetwork/MSFT_xClusterNetwork.psm1, line 40 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done Comments from Reviewable |
Done Review status: 1 of 3 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Thanks for fixing the tests, appreciate it! I thought about it, but forgot to comment on that! Just one more comment about the test. I hope it will be as easy as the new test you already did. After that I think this is ready to merge. 😄 Reviewed 2 of 3 files at r2. Tests/Unit/MSFT_xClusterNetwork.Tests.ps1, line 156 at r2 (raw file):
Could we add a similar test when the role is in desired state as well for the new code path? Comments from Reviewable |
Done Review status: 2 of 3 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Reviewed 1 of 1 files at r3. Comments from Reviewable |
Thanks @johlju |
@claudiospizzi no problem. Thanks for fixing this! 😄 |
Pull Request (PR) description
Convert the network role to the enum value if it returns a stirng, e.g. on WS2016.
This Pull Request (PR) fixes the following issues:
Fixes #175
Task list:
This change is