diff --git a/releasenotes/notes/fix-ngt-create-cli-test-with-multiple-plugin-version-13ed695ad2d8fab1.yaml b/releasenotes/notes/fix-ngt-create-cli-test-with-multiple-plugin-version-13ed695ad2d8fab1.yaml new file mode 100644 index 00000000..ac9bac21 --- /dev/null +++ b/releasenotes/notes/fix-ngt-create-cli-test-with-multiple-plugin-version-13ed695ad2d8fab1.yaml @@ -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. diff --git a/sahara_tempest_plugin/tests/cli/node_group_templates.py b/sahara_tempest_plugin/tests/cli/node_group_templates.py index d8349d80..9dd5c69c 100644 --- a/sahara_tempest_plugin/tests/cli/node_group_templates.py +++ b/sahara_tempest_plugin/tests/cli/node_group_templates.py @@ -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(