[Windows] Implement new directories hierarchy (#8616)

This commit is contained in:
Vasilii Polikarpov
2023-11-15 11:24:45 +01:00
committed by GitHub
parent 84a7deae24
commit d1f2c9a3be
165 changed files with 1146 additions and 1139 deletions

View File

@@ -0,0 +1,25 @@
Describe "Nginx" {
Context "Path" {
It "Nginx" {
$nginxPath = Join-Path (Join-Path "C:\tools\" (Get-Item C:\tools\nginx*).Name) "nginx"
"$nginxPath -v" | Should -ReturnZeroExitCode
}
}
Context "Service" {
$nginxService = Get-Service -Name nginx
$nginxServiceTests = @{
Name = $nginxService.Name
Status = $nginxService.Status
StartType = $nginxService.StartType
}
It "<Name> service is stopped" -TestCases $nginxServiceTests {
$Status | Should -Be "Stopped"
}
It "<Name> service is disabled" -TestCases $nginxServiceTests {
$StartType | Should -Be "Disabled"
}
}
}