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
In CI, notepad.exe isn't starting (or starting in time) when using start-process with .txt based on file association.
Since the test is validating opening files by association, fix is to create our own association that is predictable.
$observed.DeviceGuardSmartStatus| Should Be (Get-StringValuesFromValueMap-valuemap $smartStatusValues-values $deviceGuard.SmartStatus)
1386
-
[string]::Join(",",$observed.DeviceGuardRequiredSecurityProperties) | Should Be (Get-StringValuesFromValueMap-valuemap $requiredSecurityPropertiesValues-values $deviceGuard.RequiredSecurityProperties)
1386
+
if ($deviceGuard.RequiredSecurityProperties-eq$null)
1387
+
{
1388
+
$observed.DeviceGuardRequiredSecurityProperties| Should BeNullOrEmpty
1389
+
}
1390
+
else
1391
+
{
1392
+
[string]::Join(",",$observed.DeviceGuardRequiredSecurityProperties) | Should Be (Get-StringValuesFromValueMap-valuemap $requiredSecurityPropertiesValues-values $deviceGuard.RequiredSecurityProperties)
1393
+
}
1387
1394
$observed.DeviceGuardAvailableSecurityProperties| Should Be $deviceGuard.AvailableSecurityProperties
1388
1395
$observed.DeviceGuardSecurityServicesConfigured| Should Be $deviceGuard.SecurityServicesConfigured
1389
-
[string]::Join(",",$observed.DeviceGuardSecurityServicesRunning) | Should Be (Get-StringValuesFromValueMap-valuemap $securityServicesRunningValues-values $deviceGuard.SecurityServicesRunning)
1396
+
if ($deviceGuard.SecurityServicesRunning-eq$null)
1397
+
{
1398
+
$observed.DeviceGuardSecurityServicesRunning| Should BeNullOrEmpty
1399
+
}
1400
+
else
1401
+
{
1402
+
[string]::Join(",",$observed.DeviceGuardSecurityServicesRunning) | Should Be (Get-StringValuesFromValueMap-valuemap $securityServicesRunningValues-values $deviceGuard.SecurityServicesRunning)
1403
+
}
1390
1404
$observed.DeviceGuardCodeIntegrityPolicyEnforcementStatus| Should Be $deviceGuard.CodeIntegrityPolicyEnforcementStatus
1391
1405
$observed.DeviceGuardUserModeCodeIntegrityPolicyEnforcementStatus| Should Be $deviceGuard.UserModeCodeIntegrityPolicyEnforcementStatus
0 commit comments