mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
25
images/windows/scripts/tests/Apache.Tests.ps1
Normal file
25
images/windows/scripts/tests/Apache.Tests.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
Describe "Apache" {
|
||||
Context "Path" {
|
||||
It "Apache" {
|
||||
$apachePath = Join-Path (Join-Path "C:\tools\" (Get-Item C:\tools\apache*).Name) "\bin\httpd"
|
||||
"$apachePath -V" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Context "Service" {
|
||||
$apacheService = Get-Service -Name Apache
|
||||
$apacheServiceTests = @{
|
||||
Name = $apacheService.Name
|
||||
Status = $apacheService.Status
|
||||
StartType = $apacheService.StartType
|
||||
}
|
||||
|
||||
It "<Name> service is stopped" -TestCases $apacheServiceTests {
|
||||
$Status | Should -Be "Stopped"
|
||||
}
|
||||
|
||||
It "<Name> service is disabled" -TestCases $apacheServiceTests {
|
||||
$StartType | Should -Be "Disabled"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user