mirror of https://github.com/ansible/ansible.git
Add support for test script parameters in win_pester (#58790)
* add parameter list argument * add tests * fix test and add doc * correct test file * fix typo * fix tests * fix typo in file name * correct file name reverting the previous commit * correct property name * add checkmode message * changes as per review comments * variable casing and other review comment changes * define $test_parameters_check_mode_msg variablepull/50901/head
parent
284dafe476
commit
a20afb5822
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue