summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-03-06 17:05:43 -0500
committerScott Moser <smoser@ubuntu.com>2012-03-06 17:05:43 -0500
commitaacbeeb6dad8d987dfbc1a70f79214b72d85e67a (patch)
tree9e2ed0ed51acd885aad861a0b29c96602c05a753 /tests
parent2303079f3ad6c98cee8f27a0488057297cb049fb (diff)
downloadvyos-cloud-init-aacbeeb6dad8d987dfbc1a70f79214b72d85e67a.tar.gz
vyos-cloud-init-aacbeeb6dad8d987dfbc1a70f79214b72d85e67a.zip
assert that userdata is not returned as part of metadata
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_datasource/test_maas.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_maas.py b/tests/unittests/test_datasource/test_maas.py
index ad169b97..22374415 100644
--- a/tests/unittests/test_datasource/test_maas.py
+++ b/tests/unittests/test_datasource/test_maas.py
@@ -36,6 +36,9 @@ class TestMaasDataSource(TestCase):
self.assertEqual(userdata, data['userdata'])
for key in ('instance-id', 'hostname'):
self.assertEqual(data[key], metadata[key])
+
+ # verify that 'userdata' is not returned as part of the metadata
+ self.assertFalse(('userdata' in metadata))
def test_seed_dir_valid_extra(self):
"""Verify extra files do not affect seed_dir validity """