Skip to content

Commit

Permalink
Added wildcard support in Products parameter of UpdateServicesServer …
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBn committed May 12, 2022
1 parent 6c087d0 commit 9715717
Show file tree
Hide file tree
Showing 4 changed files with 233 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Describe "Basic tests" {
}

It "Should product are correctly configured" {
$AllProductsServer = $script:wuServer.GetUpdateCategories().Title | Where-Object {$_ -like 'Windows Server *'}
$AllProductsServer = $script:wuServer.GetUpdateCategories().Title | Where-Object {$_ -like 'Windows Server*'}

($AllProductsServer | Measure-Object).Count | Should -Be ($script:wuServer.GetSubscription().GetUpdateCategories().Title | Measure-Object ).Count

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Describe "Basic tests" {
}

It "Should product are correctly configured" {
$AllProductsServer = $script:wuServer.GetUpdateCategories().Title | Where-Object {$_ -like 'Windows Server*'}
$AllProductsServer = $script:wuServer.GetUpdateCategories().Title | Where-Object {$_ -in @('Office','Windows')}

($AllProductsServer | Measure-Object).Count | Should -Be ($script:wuServer.GetSubscription().GetUpdateCategories().Title | Measure-Object ).Count

Expand Down
Loading

0 comments on commit 9715717

Please sign in to comment.