Files
runner-images/images/macos/scripts/tests/WebServers.Tests.ps1
2023-11-15 12:12:28 +01:00

24 lines
593 B
PowerShell

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion
Describe "Apache" -Skip:($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
It "Apache CLI" {
"httpd -v" | Should -ReturnZeroExitCode
}
It "Apache Service" {
brew services list | Out-String | Should -Match "httpd\s+(stopped|none)"
}
}
Describe "Nginx" -Skip:($os.IsVentura -or $os.IsSonoma) {
It "Nginx CLI" {
"nginx -v" | Should -ReturnZeroExitCode
}
It "Nginx Service" {
brew services list | Out-String | Should -Match "nginx\s+(stopped|none)"
}
}