diff options
author | Jordan Borean <jborean93@gmail.com> | 2019-11-15 04:53:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 04:53:30 +0100 |
commit | 762fcf78b919ee58d11215c0248a044b947a9360 (patch) | |
tree | 427336160645a680e1cb6dc6c23f8a181301eef8 /test/integration/targets/win_pester/files/test04.tests.ps1 | |
parent | win_chocolatey: Fix error when choco.exe not found (#53115) (diff) | |
download | ansible-762fcf78b919ee58d11215c0248a044b947a9360.tar.xz ansible-762fcf78b919ee58d11215c0248a044b947a9360.zip |
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
Diffstat (limited to 'test/integration/targets/win_pester/files/test04.tests.ps1')
-rw-r--r-- | test/integration/targets/win_pester/files/test04.tests.ps1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/win_pester/files/test04.tests.ps1 b/test/integration/targets/win_pester/files/test04.tests.ps1 new file mode 100644 index 0000000000..07d1bd43c5 --- /dev/null +++ b/test/integration/targets/win_pester/files/test04.tests.ps1 @@ -0,0 +1,18 @@ +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 + } +} |