blob: 8f829ef0b22756997f2870bedbefc10208dedf6f [file] [log] [blame]
Patrick East9b434d12016-08-12 17:23:19 -07001# Copyright (c) 2016 Pure Storage, Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16from tempest import config
17
18from cinder.tests.tempest.services import consistencygroups_client
19
20CONF = config.CONF
21
22
23class Manager(object):
24 def __init__(self, base_manager):
25 params = {
26 'service': CONF.volume.catalog_type,
27 'region': CONF.volume.region or CONF.identity.region,
28 'endpoint_type': CONF.volume.endpoint_type,
29 'build_interval': CONF.volume.build_interval,
30 'build_timeout': CONF.volume.build_timeout
31 }
32 params.update(base_manager.default_params)
33 auth_provider = base_manager.auth_provider
34
35 self.consistencygroups_adm_client = (
36 consistencygroups_client.ConsistencyGroupsClient(auth_provider,
37 **params))