summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/test_handlers.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/handlers/test_handlers.yml')
-rw-r--r--test/integration/targets/handlers/test_handlers.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/integration/targets/handlers/test_handlers.yml b/test/integration/targets/handlers/test_handlers.yml
new file mode 100644
index 0000000000..dafa9ceebe
--- /dev/null
+++ b/test/integration/targets/handlers/test_handlers.yml
@@ -0,0 +1,26 @@
+---
+- name: run handlers
+ hosts: A
+ gather_facts: False
+ connection: local
+ roles:
+ - { role: test_handlers_meta, tags: ['scenario1'] }
+
+- name: verify final handler was run
+ hosts: A
+ gather_facts: False
+ connection: local
+ tasks:
+ - name: verify handler2 ran
+ assert:
+ that:
+ - "not hostvars[inventory_hostname]['handler1_called']"
+ - "'handler2_called' in hostvars[inventory_hostname]"
+ tags: ['scenario1']
+
+- name: test handlers
+ hosts: testgroup
+ gather_facts: False
+ connection: local
+ roles:
+ - { role: test_handlers }