summaryrefslogtreecommitdiff
path: root/tests/unittests/config/test_cc_runcmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/config/test_cc_runcmd.py')
-rw-r--r--tests/unittests/config/test_cc_runcmd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/config/test_cc_runcmd.py b/tests/unittests/config/test_cc_runcmd.py
index ab5733a7..9fdc575b 100644
--- a/tests/unittests/config/test_cc_runcmd.py
+++ b/tests/unittests/config/test_cc_runcmd.py
@@ -37,7 +37,7 @@ class TestRuncmd(FilesystemMockingTestCase):
"""When the provided config doesn't contain runcmd, skip it."""
cfg = {}
mycloud = get_cloud(paths=self.paths)
- handle("notimportant", cfg, mycloud, LOG, None)
+ handle("notimportant", cfg, mycloud, None)
self.assertIn(
"Skipping module named notimportant, no 'runcmd' key",
self.logs.getvalue(),
@@ -51,7 +51,7 @@ class TestRuncmd(FilesystemMockingTestCase):
cc = get_cloud(paths=self.paths)
with self.assertRaises(TypeError) as cm:
with self.allow_subp(["/bin/sh"]):
- handle("cc_runcmd", valid_config, cc, LOG, None)
+ handle("cc_runcmd", valid_config, cc, None)
self.assertIn("Failed to shellify", str(cm.exception))
def test_handler_invalid_command_set(self):
@@ -59,7 +59,7 @@ class TestRuncmd(FilesystemMockingTestCase):
invalid_config = {"runcmd": 1}
cc = get_cloud(paths=self.paths)
with self.assertRaises(TypeError) as cm:
- handle("cc_runcmd", invalid_config, cc, LOG, [])
+ handle("cc_runcmd", invalid_config, cc, [])
self.assertIn(
"Failed to shellify 1 into file"
" /var/lib/cloud/instances/iid-datasource-none/scripts/runcmd",
@@ -70,7 +70,7 @@ class TestRuncmd(FilesystemMockingTestCase):
"""Valid runcmd schema is written to a runcmd shell script."""
valid_config = {"runcmd": [["ls", "/"]]}
cc = get_cloud(paths=self.paths)
- handle("cc_runcmd", valid_config, cc, LOG, [])
+ handle("cc_runcmd", valid_config, cc, [])
runcmd_file = os.path.join(
self.new_root,
"var/lib/cloud/instances/iid-datasource-none/scripts/runcmd",