Skip to content

Commit

Permalink
AppVeyor is STILL failing
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Jun 16, 2018
1 parent 7972125 commit b991a57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/Unit/MSFT_xADDomain.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ try
$correctDomainName = 'present.com';
$incorrectDomainName = 'incorrect.com';
$missingDomainName = 'missing.com';
$forestMode = [Microsoft.DirectoryServices.Deployment.Types.ForestMode]::WinThreshold
$mgmtForestMode = [Microsoft.ActiveDirectory.Management.ADForestMode]::Windows2016Forest
$domainMode = [Microsoft.DirectoryServices.Deployment.Types.DomainMode]::WinThreshold
$mgmtDomainMode = [Microsoft.ActiveDirectory.Management.ADDomainMode]::Windows2016Domain
$forestMode = [Microsoft.DirectoryServices.Deployment.Types.ForestMode]::Win2012R2
$mgmtForestMode = [Microsoft.ActiveDirectory.Management.ADForestMode]::Windows2012R2Forest
$domainMode = [Microsoft.DirectoryServices.Deployment.Types.DomainMode]::Win2012R2
$mgmtDomainMode = [Microsoft.ActiveDirectory.Management.ADDomainMode]::Windows2012R2Domain
$testAdminCredential = New-Object System.Management.Automation.PSCredential 'DummyUser', (ConvertTo-SecureString 'DummyPassword' -AsPlainText -Force);
$invalidCredential = New-Object System.Management.Automation.PSCredential 'Invalid', (ConvertTo-SecureString 'InvalidPassword' -AsPlainText -Force);

Expand Down Expand Up @@ -161,7 +161,7 @@ try
}
Mock -CommandName Get-ADForest -MockWith { [psobject]@{ForestMode = $mgmtForestMode} }

(Get-TargetResource @testDefaultParams -DomainName $correctDomainName).DomainMode | Should Be $domainMode.ToString()
(Get-TargetResource @testDefaultParams -DomainName $correctDomainName).DomainMode | Should Be $domainMode
}

It 'Returns the correct forest mode' {
Expand All @@ -173,7 +173,7 @@ try
}
Mock -CommandName Get-ADForest -MockWith { [psobject]@{ForestMode = $mgmtForestMode} }

(Get-TargetResource @testDefaultParams -DomainName $correctDomainName).ForestMode | Should Be $forestMode.ToString()
(Get-TargetResource @testDefaultParams -DomainName $correctDomainName).ForestMode | Should Be $forestMode
}
}
#endregion
Expand Down

0 comments on commit b991a57

Please sign in to comment.