You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context "Testing if the CHECK_POLICY is enabled on all logins on $psitem" {
224
-
It "All logins should have the CHECK_POLICY option set to ON on $psitem"-Skip:$skip {
223
+
Context "Testing if the CHECK_POLICY is enabled on all logins on <_.Name>" {
224
+
It "All logins should have the CHECK_POLICY option set to ON on <_.Name>"-Skip:$skip {
225
225
($psitem.logins|Where-Object { $_.LoginType-eq'SqlLogin'-and$_.PasswordPolicyEnforced-eq$false-and$_.IsDisabled-eq$false }).Count | Should -Be 0-Because "We expected the CHECK_POLICY for the all logins to be enabled"
Context "Checking that build is still supported by Microsoft for <_.Name>"-Skip:$skip {
399
+
It "The build is not behind the latest build by more than <_.SupportedBuild.BuildBehind> for <_.Name>" {
400
+
$psItem.SupportedBuild.Compliant| Should -BeTrue -Because "this build $($psItem.SupportedBuild.Build) should not be behind the required build"
401
+
}
402
+
It "The build is supported by Microsoft for <_.Name>" {
403
+
$psItem.SupportedBuild.InsideMicrosoftSupport| Should -BeTrue -Because "this build $($psItem.SupportedBuild.Build) is now unsupported by Microsoft"
404
+
}
405
+
It "The build is supported by Microsoft within the warning window of <_.SupportedBuild.BuildWarning> months for <_.Name>" {
406
+
$psItem.SupportedBuild.InsideBuildWarning| Should -BeTrue -Because "this build $($psItem.SupportedBuild.Build) will be unsupported by Microsoft on $($psItem.SupportedBuild.SupportedUntil) which is less than $($psItem.SupportedBuild.BuildWarning) months away"
0 commit comments