Skip to content

Commit

Permalink
[macOS] update webservers pester test (#9444)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-pyshnoi authored Mar 4, 2024
1 parent e27310f commit 9d2d1a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions images/macos/scripts/tests/WebServers.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Describe "Apache" -Skip:($os.IsVentura -or $os.IsSonoma) {
}

It "Apache Service" {
brew services list | Out-String | Should -Match "httpd\s+(stopped|none)"
$service = brew services list --json | ConvertFrom-Json | Where-Object { $_.name -eq "httpd" }
$service.status | Should -Match "(stopped|none)"
}
}

Expand All @@ -18,6 +19,7 @@ Describe "Nginx" -Skip:($os.IsVentura -or $os.IsSonoma) {
}

It "Nginx Service" {
brew services list | Out-String | Should -Match "nginx\s+(stopped|none)"
$service = brew services list --json | ConvertFrom-Json | Where-Object { $_.name -eq "nginx" }
$service.status | Should -Match "(stopped|none)"
}
}

0 comments on commit 9d2d1a4

Please sign in to comment.