From 6d8f796239ed635f2e4de97d167e54f74baba2a2 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 16 Mar 2012 13:14:27 -0400 Subject: add supprot for reading public-keys from DataSourcMAAS --- tests/unittests/test_datasource/test_maas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/unittests') diff --git a/tests/unittests/test_datasource/test_maas.py b/tests/unittests/test_datasource/test_maas.py index 01565217..7659dd03 100644 --- a/tests/unittests/test_datasource/test_maas.py +++ b/tests/unittests/test_datasource/test_maas.py @@ -29,7 +29,8 @@ class TestMAASDataSource(MockerTestCase): data = {'instance-id': 'i-valid01', 'local-hostname': 'valid01-hostname', - 'user-data': 'valid01-userdata'} + 'user-data': 'valid01-userdata', + 'public-keys': 'ssh-rsa AAAAB3Nz...aC1yc2E= keyname'} my_d = os.path.join(self.tmp, "valid") populate_dir(my_d, data) @@ -99,6 +100,7 @@ class TestMAASDataSource(MockerTestCase): """Verify that valid seed_url is read as such""" valid = {'meta-data/instance-id': 'i-instanceid', 'meta-data/local-hostname': 'test-hostname', + 'meta-data/public-keys': 'test-hostname', 'user-data': 'foodata'} my_seed = "http://example.com/xmeta" -- cgit v1.2.3