mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[macOS] update webservers pester test (#9444)
This commit is contained in:
@@ -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)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user