Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Update webservers pester test #9444

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)"
}
}
Loading