Fixed hadoop keys generation in case of existing extra

Also added extra value to test.

Change-Id: I1b76e20254445bf653a9c6d5e62019a95bef1ffb
This commit is contained in:
Andrew Lazarev
2014-07-08 13:08:36 -07:00
parent 2841962f43
commit 0cd7881d26
2 changed files with 3 additions and 2 deletions

View File

@@ -269,7 +269,8 @@ class VanillaPluginTest(base.SaharaWithDbTestCase):
'plugin_name': 'mock_plugin',
'hadoop_version': 'mock_version',
'default_image_id': 'initial',
'node_groups': [tu.make_ng_dict("ng1", "f1", ["s1"], 1)]}
'node_groups': [tu.make_ng_dict("ng1", "f1", ["s1"], 1)],
'extra': {'test': '1'}}
cluster1 = conductor.cluster_create(context.ctx(), cluster_dict)
(private_key1, public_key1) = c_h.get_hadoop_ssh_keys(cluster1)