This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
- name:Configuring a handler with missing tcp parameters should fail
sensu_handler:
name:"tcp"
type:"tcp"
register:failure
ignore_errors:true
- name:Assert that configuring a handler with missing tcp parameters fails
assert:
that:
- failure |failed
- "'the following are missing: socket' in failure['msg']"