Port to the tempest stable plugin interface (clients)
This is one of the last tempest plugins which was still not using
the proper interface to define its clients.
(Hopefully) no behavioral changes, just refactoring.
Change-Id: Ia57c771186cd1bf283f30b58007395d33aefa4a9
diff --git a/cinder_tempest_plugin/plugin.py b/cinder_tempest_plugin/plugin.py
index 5d170e5..79c835c 100644
--- a/cinder_tempest_plugin/plugin.py
+++ b/cinder_tempest_plugin/plugin.py
@@ -69,3 +69,26 @@
project_config.barbican_service_option))
return opt_lists
+
+ def get_service_clients(self):
+ volumes_config = config.service_client_config('volume')
+
+ consistencygroups_params = {
+ 'name': 'consistencygroups_v3',
+ 'service_version': 'consistencygroups.v3',
+ 'module_path': 'cinder_tempest_plugin.services.'
+ 'consistencygroups_client',
+ 'client_names': ['ConsistencyGroupsClient'],
+ }
+ consistencygroups_params.update(volumes_config)
+
+ volumerevert_params = {
+ 'name': 'volume_revert_v3',
+ 'service_version': 'volume_revert.v3',
+ 'module_path': 'cinder_tempest_plugin.services.'
+ 'volume_revert_client',
+ 'client_names': ['VolumeRevertClient'],
+ }
+ volumerevert_params.update(volumes_config)
+
+ return [consistencygroups_params, volumerevert_params]