[macOS] update webservers pester test (#9444)

This commit is contained in:
sergei-pyshnoi
2024-03-05 00:10:31 +01:00
committed by GitHub
parent e27310f1e3
commit 9d2d1a4c06

View File

@@ -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)"
}
}
@@ -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)"
}
}