summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-01-23 20:56:31 -0500
committerScott Moser <smoser@ubuntu.com>2018-01-23 20:56:31 -0500
commitccbe7f6e53eb243b5c869d4f927b93b47e5cb8cd (patch)
tree02e72f412add8a3c4a6e8884a32f5c675fb213ef
parent2d781c6a3e27433b7fa993cd54b269ceb74e10b2 (diff)
downloadvyos-cloud-init-ccbe7f6e53eb243b5c869d4f927b93b47e5cb8cd.tar.gz
vyos-cloud-init-ccbe7f6e53eb243b5c869d4f927b93b47e5cb8cd.zip
tests: Fix attempted use of /run in a test case.
The previous commit added a test that would attempt to create and use /run/cloud-init/. This just modifies it to use a temp dir instead.
-rw-r--r--tests/unittests/test_datasource/test_gce.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py
index 12d68009..f77c2c40 100644
--- a/tests/unittests/test_datasource/test_gce.py
+++ b/tests/unittests/test_datasource/test_gce.py
@@ -194,7 +194,7 @@ class TestDataSourceGCE(test_helpers.HttprettyTestCase):
mock_ug_util.extract_default.return_value = 'ubuntu', None
ubuntu_ds = DataSourceGCE.DataSourceGCE(
settings.CFG_BUILTIN, self._make_distro('ubuntu'),
- helpers.Paths({}))
+ helpers.Paths({'run_dir': self.tmp_dir()}))
valid_key = 'ssh-rsa VALID {0}'
invalid_key = 'ssh-rsa INVALID {0}'