Przeglądaj źródła

Merge pull request #3919 from rhcarvalho/fix-action-plugin-test-ansible2.3

Fix instantiation of action plugin test to support Ansible 2.3
Rodolfo Carvalho 8 lat temu
rodzic
commit
5652298bec

+ 3 - 1
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