ansible/test/integration/targets/win_pester/files/test04.tests.ps1
Jordan Borean 762fcf78b9
win_pester - Align dir scanning with Pester's defaults (#64880)
* win_pester - Align dir scanning with Pester's defaults

Co-authored-by: Coby Caldwell <cobycaldwell@gmail.com>

* Fix sanity issues
2019-11-15 13:53:30 +10:00

18 lines
492 B
PowerShell

Param(
$Service,
$Process
)
Describe "Process should exist" {
it "Process $Process should be running" -Skip:([String]::IsNullOrEmpty($Process)) {
Get-Process -Name $Process -ErrorAction SilentlyContinue | Should Not BeNullOrEmpty
}
}
Describe "Service should exist" -tag Service {
it "Service $Service should exist" -Skip:([String]::IsNullOrEmpty($Service)) {
Get-Service -Name $Service -ErrorAction SilentlyContinue | Should Not BeNullOrEmpty
}
}