Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xCluster: Refactored unit test (#82)
- Changes to xFailOverCluster - Added new stubs for FailoverClusters module (Tests\Unit\Stubs\FailoverClusters.stubs.psm1) to be able to run unit tests on a computer that does not have or can install Failover Clustering PowerShell module. - Added a script file (Tests\Unit\Stubs\Write-ModuleStubFile.ps1) to be able to rebuild the stub file (FailoverClusters.stubs.psm1) whenever needed. - Changes to xCluster - Refactored the unit test for this resource to use stubs and increase coverage (issue #73). - Removed the password file (MSFT_xCluster.password.txt) which seemed unnecessary. - Test-TargetResource now throws and error if domain name cannot be evaluated (issue #72). - Set-TargetResource now correctly throws and error if domain name cannot be evaluated (issue #71).
- Loading branch information