Support use_autoconfig in sahara clusters

Since 0.10.0 python-saharaclient has ability to specify
use_autoconfig parameter when creating clusters.
This patch adds support for this feature to
OS::Sahara::Cluster resource in Heat.

Change-Id: I91c039d95db6702ffed3a156aaa296e54305ef4d
This commit is contained in:
Tetiana Lashchova
2015-09-02 12:12:37 +03:00
parent 70b4d5c8b9
commit e63936e7b0
2 changed files with 12 additions and 2 deletions

View File

@@ -94,7 +94,8 @@ class SaharaClusterTest(common.HeatTestCase):
expected_kwargs = {'cluster_template_id': 'some_cluster_template_id',
'user_keypair_id': 'admin',
'default_image_id': 'some_image_id',
'net_id': 'some_network_id'}
'net_id': 'some_network_id',
'use_autoconfig': None}
self.cl_mgr.create.assert_called_once_with(*expected_args,
**expected_kwargs)
self.cl_mgr.get.assert_called_once_with(self.fake_cl.id)