Skip to content

Commit

Permalink
fix test to look at wmi result and not osinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Lee (POWERSHELL HE/HIM) (from Dev Box) committed Oct 17, 2024
1 parent f9c66eb commit 8affd55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wmi-adapter/Tests/wmi.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Describe 'WMI adapter resource tests' {
$LASTEXITCODE | Should -Be 0
$r | Should -Not -BeNullOrEmpty
$res = $r | ConvertFrom-Json
$res.results[0].result.actualState[0].Name | Should -Not -BeNullOrEmpty
$res.results[0].result.actualState[0].BootupState | Should -BeNullOrEmpty
$res.results[0].result.actualState[1].Caption | Should -Not -BeNullOrEmpty
$res.results[0].result.actualState[1].BuildNumber | Should -BeNullOrEmpty
$res.results[0].result.actualState[4].AdapterType | Should -BeLike "Ethernet*"
$res.results[1].result.actualState[0].Name | Should -Not -BeNullOrEmpty
$res.results[1].result.actualState[0].BootupState | Should -BeNullOrEmpty
$res.results[1].result.actualState[1].Caption | Should -Not -BeNullOrEmpty
$res.results[1].result.actualState[1].BuildNumber | Should -BeNullOrEmpty
$res.results[1].result.actualState[4].AdapterType | Should -BeLike "Ethernet*"
}
}

0 comments on commit 8affd55

Please sign in to comment.