diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2016-03-23 13:32:23 -0500 |
---|---|---|
committer | Ryan Harper <ryan.harper@canonical.com> | 2016-03-23 13:32:23 -0500 |
commit | d8cfa30be45492140c04fb9c9ed69e83e9f041d9 (patch) | |
tree | 66fdf72611f5e327ed07cfe3e9547e01b29b31d0 | |
parent | 2b85dabb802766e0b3b1949d744c8860c0cb838a (diff) | |
download | vyos-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.
-rw-r--r-- | tests/unittests/test_datasource/test_configdrive.py | 1 |
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) |