MSFT_xExchAutodiscoverVirtualDirectory.tests.ps1: Incorrect reference to Get-UMCallRouterSettings
Closed this issue · 0 comments
mhendric commented
Details of the scenario you tried and the problem that is occurring
Test-TargetResource Unit tests in MSFT_xExchAutodiscoverVirtualDirectory.tests.ps1 have a reference to Get-UMCallRouterSettings. This should be fixed.
Context 'When Test-TargetResource is called' {
Mock -CommandName Get-RemoteExchangeSession -Verifiable
It 'Should return False when Get-UMCallRouterSettings returns null' {
Mock -CommandName Get-AutodiscoverVirtualDirectoryInternal -Verifiable
Test-TargetResource @commonTargetResourceParams -ErrorAction SilentlyContinue | Should -Be $false
}
Suggested solution to the issue
Shorten to:
It 'Should return False'
Version of the DSC module that was used ('dev' if using current dev branch)
dev