Skip to content

Commit

Permalink
fix pester testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrola committed Jun 28, 2024
1 parent eb89890 commit 88bcf90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function Set-TargetResource
}
}

Set-EOPProtectionPolicyRule @UpdateParameters | Out-Null
Set-EOPProtectionPolicyRule @UpdateParameters
}
elseif ($Ensure -eq 'Absent' -and $currentInstance.Ensure -eq 'Present')
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
Context -Name "The EXOEOPProtectionPolicyRule exists but it SHOULD NOT" -Fixture {
BeforeAll {
$testParams = @{
Ensure = 'Absent'
Ensure = 'Present'
Credential = $Credential;
ExceptIfRecipientDomainIs = @("contoso.onmicrosoft.com");
Identity = "Strict Preset Security Policy";
Expand All @@ -68,6 +68,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
ExceptIfRecipientDomainIs = @("contoso.onmicrosoft.com")
Comments = "FakeStringValue"
Priority = 0
State = "Enabled";
}
}

Expand Down
14 changes: 0 additions & 14 deletions Tests/Unit/Stubs/Generic.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1241,20 +1241,6 @@ function Get-EOPProtectionPolicyRule
)
}

function Set-EOPProtectionPolicyRule
{
[CmdletBinding()]
Param(
[Parameter()]
[System.String]
$Identity,

[Parameter()]
[System.String]
$State
)
}

function Enable-EOPProtectionPolicyRule
{
[CmdletBinding()]
Expand Down

0 comments on commit 88bcf90

Please sign in to comment.