summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Frittoli <andrea.frittoli@gmail.com>2017-10-26 15:39:27 +0200
committerGraham Hayes <gr@ham.ie>2017-12-18 15:03:05 +0000
commit0eeb290db3dd375093a566f9420c9c9001603320 (patch)
treefa5ebdd04d514b2c7f3f476853e5c016bad80953
parent5a880e6d7247b9456dba75a5c659025db4af075a (diff)
Implement get_service_clients interface
Implement the get_service_client interface for the designate Tempest plugin. Change-Id: I7ab26b7f9958feb1f276c68bed0dfdef5ecad83c
Notes
Notes (review): Code-Review+2: Jens Harbott (frickler) <j.harbott@x-ion.de> Code-Review+2: Graham Hayes <gr@ham.ie> Workflow+1: Graham Hayes <gr@ham.ie> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 03 Jan 2018 15:32:53 +0000 Reviewed-on: https://review.openstack.org/522280 Project: openstack/designate-tempest-plugin Branch: refs/heads/master
-rw-r--r--designate_tempest_plugin/plugin.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/designate_tempest_plugin/plugin.py b/designate_tempest_plugin/plugin.py
index 0a093ef..47479ba 100644
--- a/designate_tempest_plugin/plugin.py
+++ b/designate_tempest_plugin/plugin.py
@@ -74,3 +74,25 @@ class DesignateTempestPlugin(plugins.TempestPlugin):
74 (project_config.dns_feature_group.name, 74 (project_config.dns_feature_group.name,
75 project_config.DnsFeatureGroup), 75 project_config.DnsFeatureGroup),
76 ] 76 ]
77
78 def get_service_clients(self):
79 dns_config = config.service_client_config('dns')
80 admin_params = {
81 'name': 'dns_admin',
82 'service_version': 'dns.admin',
83 'module_path': 'designate_tempest_plugin.services.dns.admin',
84 'client_names': ['QuotasClient']
85 }
86 v2_params = {
87 'name': 'dns_v2',
88 'service_version': 'dns.v2',
89 'module_path': 'designate_tempest_plugin.services.dns.v2',
90 'client_names': ['BlacklistsClient', 'PoolClient', 'QuotasClient',
91 'RecordsetClient', 'TldClient',
92 'TransferAcceptClient', 'TransferRequestClient',
93 'TsigkeyClient', 'ZoneExportsClient',
94 'ZoneImportsClient', 'ZonesClient']
95 }
96 admin_params.update(dns_config)
97 v2_params.update(dns_config)
98 return [admin_params, v2_params]