Files
runner-images-sangeeth/images/macos/tests/WebServers.Tests.ps1
Aleksandr Chebotov 5537d89215 [macOS] Add apache and nginx (#2522)
* add apache and nginx

* swap config and service status

* add new line

* remove notes
2021-01-26 17:14:31 +03:00

20 lines
408 B
PowerShell

Describe "Apache" {
It "Apache CLI" {
"httpd -v" | Should -ReturnZeroExitCode
}
It "Apache Service" {
brew services list | Out-String | Should -Match "httpd\s+stopped"
}
}
Describe "Nginx" {
It "Nginx CLI" {
"nginx -v" | Should -ReturnZeroExitCode
}
It "Nginx Service" {
brew services list | Out-String | Should -Match "nginx\s+stopped"
}
}