Re-enable Get-ComputerInfo pending tests (#19746)

This commit is contained in:
James Truher [MSFT]
2023-06-05 16:36:59 -07:00
committed by GitHub
parent 6520c05949
commit 22fdbbda0b
@@ -7,6 +7,11 @@
$computerInfoAll = $null
$testStartTime = Get-Date
$excludedProperties = @(
"CsPhysicallyInstalledMemory",
"OsServerLevel"
)
function Get-ComputerInfoForTest
{
# NOTE: $forceRefresh only applies to the case where $properties is null
@@ -1041,8 +1046,13 @@ try {
# easier to debug the problem if we know *all* the failures
# issue: https://github.com/PowerShell/PowerShell/issues/4762
# CsPhysicallyInstalledMemory not available when run in nightly builds
It "Test 01. Standard Property test - all properties (<property>)" -testcase $testCases -Pending {
It "Test 01. Standard Property test - all properties (<property>)" -testcase $testCases {
param ( $property )
if ($excludedProperties -contains $property) {
Set-ItResult -Pending -Because "'$property' is not available in nightly builds"
}
$specialProperties = "CsNetworkAdapters","CsProcessors","OsHotFixes"
if ( $specialProperties -contains $property )
{