2021-01-27 17:26:40 +03:00
|
|
|
$os = Get-OSVersion
|
|
|
|
|
|
|
|
|
|
Describe "Apache" -Skip:($os.IsLessThanCatalina) {
|
2021-01-26 17:14:31 +03:00
|
|
|
It "Apache CLI" {
|
|
|
|
|
"httpd -v" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Apache Service" {
|
|
|
|
|
brew services list | Out-String | Should -Match "httpd\s+stopped"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-27 17:26:40 +03:00
|
|
|
Describe "Nginx" -Skip:($os.IsLessThanCatalina) {
|
2021-01-26 17:14:31 +03:00
|
|
|
It "Nginx CLI" {
|
|
|
|
|
"nginx -v" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Nginx Service" {
|
|
|
|
|
brew services list | Out-String | Should -Match "nginx\s+stopped"
|
|
|
|
|
}
|
|
|
|
|
}
|