Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_pester/files/test04.tests.ps1

raw
1 Param(
2 $Service,
3 $Process
4 )
5
6 Describe "Process should exist" {
7 it "Process $Process should be running" -Skip:([String]::IsNullOrEmpty($Process)) {
8 Get-Process -Name $Process -ErrorAction SilentlyContinue | Should Not BeNullOrEmpty
9 }
10 }
11
12
13
14 Describe "Service should exist" -tag Service {
15 it "Service $Service should exist" -Skip:([String]::IsNullOrEmpty($Service)) {
16 Get-Service -Name $Service -ErrorAction SilentlyContinue | Should Not BeNullOrEmpty
17 }
18 }