blob: 93c07539ea296788a8588436f84a2ec12e5a58cb [file] [log] [blame]
Rodrigo Duarte4666c642016-04-06 11:52:19 -03001# Copyright 2016 Red Hat, Inc.
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 keystone_tempest_plugin.services.identity.v3 import (
16 identity_providers_client)
Rodrigo Duarted96e29c2016-04-08 11:53:43 -030017from keystone_tempest_plugin.services.identity.v3 import (
Rodrigo Duarte179085d2016-04-13 13:56:37 -030018 mapping_rules_client)
19from keystone_tempest_plugin.services.identity.v3 import (
Rodrigo Duarted96e29c2016-04-08 11:53:43 -030020 service_providers_client)
Rodrigo Duartee508fe02016-06-02 16:08:39 -030021from keystone_tempest_plugin.services.identity.v3 import auth_client
Colleen Murphy5ee9af82020-07-29 16:42:58 -070022from keystone_tempest_plugin.services.identity.v3 import limits_client
Rodrigo Duartee508fe02016-06-02 16:08:39 -030023from keystone_tempest_plugin.services.identity.v3 import saml2_client
Rodrigo Duarte4666c642016-04-06 11:52:19 -030024
25from tempest import clients
26
27
28class Manager(clients.Manager):
29
Rodrigo Duarte3b0cd802017-01-05 13:06:29 -030030 def __init__(self, credentials):
31 super(Manager, self).__init__(credentials)
Rodrigo Duarte4666c642016-04-06 11:52:19 -030032
Colleen Murphy5ee9af82020-07-29 16:42:58 -070033 # keystone auth client
Rodrigo Duartee508fe02016-06-02 16:08:39 -030034 self.auth_client = auth_client.AuthClient(self.auth_provider)
Colleen Murphy5ee9af82020-07-29 16:42:58 -070035
36 # federation clients
Rodrigo Duarte4666c642016-04-06 11:52:19 -030037 self.identity_providers_client = (
38 identity_providers_client.IdentityProvidersClient(
39 self.auth_provider))
Rodrigo Duarte179085d2016-04-13 13:56:37 -030040 self.mapping_rules_client = (
41 mapping_rules_client.MappingRulesClient(
42 self.auth_provider))
Rodrigo Duartee508fe02016-06-02 16:08:39 -030043 self.saml2_client = saml2_client.Saml2Client()
Rodrigo Duarted96e29c2016-04-08 11:53:43 -030044 self.service_providers_client = (
45 service_providers_client.ServiceProvidersClient(
46 self.auth_provider))
Colleen Murphy5ee9af82020-07-29 16:42:58 -070047
48 # unified limits clients
49 self.registered_limits_client = limits_client.RegisteredLimitsClient(
50 self.auth_provider)
51 self.limits_client = limits_client.LimitsClient(self.auth_provider)