mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
20
tests/integration/targets/sensu_handler/tasks/pipe.yml
Normal file
20
tests/integration/targets/sensu_handler/tasks/pipe.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Note: Pipe handlers are also tested and used as part of basic main.yml coverage
|
||||
- name: Configuring a handler with missing pipe parameters should fail
|
||||
sensu_handler:
|
||||
name: "pipe"
|
||||
type: "pipe"
|
||||
register: failure
|
||||
ignore_errors: true
|
||||
|
||||
- name: Assert that configuring a handler with missing pipe parameters fails
|
||||
assert:
|
||||
that:
|
||||
- failure is failed
|
||||
- "'the following are missing: command' in failure['msg']"
|
||||
|
||||
- name: Configure a handler with pipe parameters
|
||||
sensu_handler:
|
||||
name: "pipe"
|
||||
type: "pipe"
|
||||
command: "/bin/bash"
|
||||
register: handler
|
Loading…
Add table
Add a link
Reference in a new issue