-
Notifications
You must be signed in to change notification settings - Fork 224
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
Pester Tests Need to be implemented for all existing Modules #92
Comments
Note: We are also discussing mocking in issue #90 |
I on task to fix tests for xSQLServerEndpointState, xSQLServerAvailabilityGroupListener and xSQLServerEndpointPermission. |
xSQLServerPermission is also failing in the build. Doesn't look like it was tested when you did the intial push |
The test was actually tested successfully by AppVoyer. The PR did not fail the tests (it wouldn't been merged otherwise I belive). Strange that it fails when it's tested together with your new tests. Does all tests work together in your dev environment? @mbreakey3 Can you see why the tests fail? The error message (the types) failling from the resource aren't anywhere close to what's used in the resource. So it feels strange. |
Yeah, so the build that shows up for xSqlServer is actually from Master, not Dev. John's merge did run successfully actually. We're still looking into other causes for why this might be happening. |
I have a new test finished (one, of the three I set out to do, is done). I can send in a PR of that test I got if that helps to debug. |
Is it for one of the resources that already has a test file? |
No, it's a new one, for the resource xSQLServerEndpointState |
Correction. It will send in a new version of the existing test as well, because I did small changes in it. |
Okay, I think it would probably be best to just roll it into one PR once you finish the other tests, and we'll try to get this issue figured out in the mean time. |
Will do. Fixing rest of the test. |
Currently have xSQLAOGroupJoin test complete moving on the xSQLDatabaseRecoveryModel next then to xSQLServerAlwayONService and working the way down the list. |
New test in PR #106 for xSqlServerLogin |
Working on a test for xSQLServerDatabaseRole. Will PR this weekend. |
New test in PR #138 for MSFT_xSQLServerDatabaseOwner |
New test in PR #140 for MSFT_xSQLServerDatabasePermissions |
@luigilink Great work!! 😄 |
Tests for xSQLServerConfiguration are in PR #143 |
@aultt could you add the status of test development in issue description:
Update: |
I added those I have in PR. MSFT_xSQLServerPowerPlan we can skip, it's being moved. So it will be removed from this module as soon it is merged in repo xComputerManagement. |
I closing this issue, and instead I open a new issue for each resource. |
…1828) - SqlServerDsc - Removed `Test-ServiceAccountRequirePassword` from private functions (issue #1794) - Replaced by `Test-AccountRequirePassword` that was added to _DscResource.Common_ public functions ([issue #93](dsccommunity/DscResource.Common#93)). - Removed `Assert-RequiredCommandParameter` from private functions (issue #1796). - Replaced by `Assert-BoundParameter` (part of _DscResource.Common_) that had a new parameter set added ([issue #92](dsccommunity/DscResource.Common#92)).
We need additional people to help write Pester tests. This is a requirement to take the resource out of experimental status.
The text was updated successfully, but these errors were encountered: