diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-04-20 11:40:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 11:40:15 +0200 |
commit | 5652298bec7089ebb0f27b85e427bf19091dda13 (patch) | |
tree | c1aab9b625639600e11c03de54586c3ad48d020b /roles/openshift_health_checker | |
parent | 3820dab16536a56474304a77414f426a619b98df (diff) | |
parent | 590d6c12528654bf4e391a7f47662b038b5601a8 (diff) | |
download | openshift-5652298bec7089ebb0f27b85e427bf19091dda13.tar.gz openshift-5652298bec7089ebb0f27b85e427bf19091dda13.tar.bz2 openshift-5652298bec7089ebb0f27b85e427bf19091dda13.tar.xz openshift-5652298bec7089ebb0f27b85e427bf19091dda13.zip |
Merge pull request #3919 from rhcarvalho/fix-action-plugin-test-ansible2.3
Fix instantiation of action plugin test to support Ansible 2.3
Diffstat (limited to 'roles/openshift_health_checker')
-rw-r--r-- | roles/openshift_health_checker/test/action_plugin_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/test/action_plugin_test.py b/roles/openshift_health_checker/test/action_plugin_test.py index a877246f4..2693ae37b 100644 --- a/roles/openshift_health_checker/test/action_plugin_test.py +++ b/roles/openshift_health_checker/test/action_plugin_test.py @@ -1,5 +1,7 @@ import pytest +from ansible.playbook.play_context import PlayContext + from openshift_health_check import ActionModule, resolve_checks from openshift_checks import OpenShiftCheckException @@ -34,7 +36,7 @@ def fake_check(name='fake_check', tags=None, is_active=True, run_return=None, ru @pytest.fixture def plugin(): task = FakeTask('openshift_health_check', {'checks': ['fake_check']}) - plugin = ActionModule(task, None, None, None, None, None) + plugin = ActionModule(task, None, PlayContext(), None, None, None) return plugin |