Skip to content

Commit

Permalink
Merge pull request #423 from maester365/Snozzberries-patch-3
Browse files Browse the repository at this point in the history
MT.1021 would always skip
  • Loading branch information
merill authored Aug 21, 2024
2 parents 573f77e + 003efda commit c0ded16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@

Describe "Security Defaults" -Tag "CA", "Security", "All" {
It "MT.1021: Security Defaults are enabled. See https://maester.dev/docs/tests/MT.1021" -Tag "MT.1021" {
$EntraIDPlan = Get-MtLicenseInformation -Product EntraID
if ($EntraIDPlan -ne "Free") {
Add-MtTestResultDetail -SkippedBecause LicensedEntraIDPremium
} else {
$SecurityDefaults = Invoke-MtGraphRequest -RelativeUri "policies/identitySecurityDefaultsEnforcementPolicy" -ApiVersion beta | Select-Object -ExpandProperty isEnabled
$SecurityDefaults | Should -Be $true -Because "Security Defaults are not enabled"
}
}
}
}

0 comments on commit c0ded16

Please sign in to comment.