Files
runner-images/images/macos/tests/WebServers.Tests.ps1
V-Zabayrachny 3c2f1c6350 [macOS] Remove macOS 10.14 related code in the VE repo (#4816)
* [MacOS] Remove code for macOS-10.14

* remove is_Less_BigSur in all script

* remove variable the IsLessThanBigSur
2021-12-30 10:36:59 +03:00

22 lines
443 B
PowerShell

$os = Get-OSVersion
Describe "Apache" {
It "Apache CLI" {
"httpd -v" | Should -ReturnZeroExitCode
}
It "Apache Service" {
brew services list | Out-String | Should -Match "httpd\s+(stopped|none)"
}
}
Describe "Nginx" {
It "Nginx CLI" {
"nginx -v" | Should -ReturnZeroExitCode
}
It "Nginx Service" {
brew services list | Out-String | Should -Match "nginx\s+(stopped|none)"
}
}