Browse Source

Merge "Implement get_service_clients interface"

Zuul 1 year ago
parent
commit
48b08be4a2
1 changed files with 22 additions and 0 deletions
  1. 22
    0
      designate_tempest_plugin/plugin.py

+ 22
- 0
designate_tempest_plugin/plugin.py View File

@@ -74,3 +74,25 @@ class DesignateTempestPlugin(plugins.TempestPlugin):
74 74
             (project_config.dns_feature_group.name,
75 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]

Loading…
Cancel
Save