summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_configdrive.py
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2016-03-23 13:32:23 -0500
committerRyan Harper <ryan.harper@canonical.com>2016-03-23 13:32:23 -0500
commitd8cfa30be45492140c04fb9c9ed69e83e9f041d9 (patch)
tree66fdf72611f5e327ed07cfe3e9547e01b29b31d0 /tests/unittests/test_datasource/test_configdrive.py
parent2b85dabb802766e0b3b1949d744c8860c0cb838a (diff)
downloadvyos-cloud-init-d8cfa30be45492140c04fb9c9ed69e83e9f041d9.tar.gz
vyos-cloud-init-d8cfa30be45492140c04fb9c9ed69e83e9f041d9.zip
unittest: fix bad json test with ConfigDrive
Introduced a new path in configdrive, openstack/2015-10-15/, needed to add bogus data in that path as well to ensure config reader didn't find good data when testing for exception thrown.
Diffstat (limited to 'tests/unittests/test_datasource/test_configdrive.py')
-rw-r--r--tests/unittests/test_datasource/test_configdrive.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_configdrive.py b/tests/unittests/test_datasource/test_configdrive.py
index 01f8c5ce..89b15f54 100644
--- a/tests/unittests/test_datasource/test_configdrive.py
+++ b/tests/unittests/test_datasource/test_configdrive.py
@@ -283,6 +283,7 @@ class TestConfigDriveDataSource(TestCase):
data = copy(CFG_DRIVE_FILES_V2)
data["openstack/2012-08-10/meta_data.json"] = "non-json garbage {}"
+ data["openstack/2015-10-15/meta_data.json"] = "non-json garbage {}"
data["openstack/latest/meta_data.json"] = "non-json garbage {}"
populate_dir(self.tmp, data)