blob: 70ce1340a658d835c2f67f2b1ed987dfec4d05e1 [file] [log] [blame]
Yuiko Takadab6527002015-12-07 11:49:12 +09001# All Rights Reserved.
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.
14
15from tempest import clients
16from tempest.common import credentials_factory as common_creds
17from tempest import config
18
19from ironic_tempest_plugin.services.baremetal.v1.json.baremetal_client import \
20 BaremetalClient
21
22
23CONF = config.CONF
24
25ADMIN_CREDS = common_creds.get_configured_credentials('identity_admin')
26
27
28class Manager(clients.Manager):
29 def __init__(self,
30 credentials=ADMIN_CREDS,
31 service=None,
32 api_microversions=None):
33 super(Manager, self).__init__(credentials, service)
34 self.baremetal_client = BaremetalClient(
35 self.auth_provider,
36 CONF.baremetal.catalog_type,
37 CONF.identity.region,
38 endpoint_type=CONF.baremetal.endpoint_type,
39 **self.default_params_with_timeout_values)