From 6884e44bb35e89cc9e17a50001009685634cf612 Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Tue, 11 Apr 2017 10:43:00 -0400 Subject: [PATCH] Unit test added. --- awx/lib/tests/test_display_callback.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/awx/lib/tests/test_display_callback.py b/awx/lib/tests/test_display_callback.py index f84ab0df4f..2e979a67ca 100644 --- a/awx/lib/tests/test_display_callback.py +++ b/awx/lib/tests/test_display_callback.py @@ -86,7 +86,19 @@ def executor(tmpdir_factory, request): - name: Hello Message debug: msg: "Hello World!" -'''} # noqa +'''}, # noqa +{'results_included.yml': ''' +- name: Run module which generates results list + connection: local + hosts: all + gather_facts: no + vars: + results: ['foo', 'bar'] + tasks: + - name: Generate results list + debug: + var: results +'''}, # noqa ]) def test_callback_plugin_receives_events(executor, cache, event, playbook): executor.run()