Merge "Fix NGT creation test with multiple plugin versions"
This commit is contained in:
commit
0674ad72bd
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
The node group template creation test for the CLI client does not fail
|
||||
anymore when the Sahara plugin selected for testing provides more than
|
||||
one version.
|
@ -30,13 +30,13 @@ class SaharaNodeGroupCLITest(base.ClientTestBase):
|
||||
plugin = self.get_default_plugin()
|
||||
id_net_pool = self.find_id_of_pool()
|
||||
node_group_name = data_utils.rand_name(ng_type)
|
||||
plugin_version = plugin['Versions'].split(',')[0].strip()
|
||||
flags = ("%(ngt_name)s %(plugin)s %(plugin-version)s "
|
||||
"%(processes)s %(flavor)s %(floating-pool)s"
|
||||
% {'floating-pool': ' --floating-ip-pool %s' % id_net_pool,
|
||||
'flavor': ' --flavor %s' % flavor_id,
|
||||
'processes': ' --processes datanode',
|
||||
'plugin-version': ' --plugin-version %s'
|
||||
% plugin['Versions'],
|
||||
'plugin-version': ' --plugin-version %s' % plugin_version,
|
||||
'plugin': ' --plugin %s' % plugin['Name'],
|
||||
'ngt_name': '--name %s' % node_group_name})
|
||||
self.assertTableStruct(
|
||||
|
Loading…
Reference in New Issue
Block a user