blob: 79d6cba3a58582bd51ac5a0a481dfcef2cfc6dc3 [file] [log] [blame]
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +01001# Copyright 2016 Hewlett Packard Enterprise Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14from tempest import clients
15from tempest import config
16
17from designate_tempest_plugin.services.dns.v2.json.zones_client import \
18 ZonesClient
19
20
21CONF = config.CONF
22
23
24class Manager(clients.Manager):
25 def __init__(self, credentials=None, service=None):
26 super(Manager, self).__init__(credentials, service)
27
28 params = {
29 'service': CONF.dns.catalog_type,
30 'region': CONF.identity.region,
31 'endpoint_type': CONF.dns.endpoint_type,
32 'build_interval': CONF.dns.build_interval,
33 'build_timeout': CONF.dns.build_timeout
34 }
35 params.update(self.default_params)
36
37 self.zones_client = ZonesClient(self.auth_provider, **params)