mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
492 B
PowerShell
19 lines
492 B
PowerShell
5 years ago
|
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
|
||
|
}
|
||
|
}
|