Rodrigo Duarte | 4666c64 | 2016-04-06 11:52:19 -0300 | [diff] [blame] | 1 | # 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 | |
| 15 | from keystone_tempest_plugin.services.identity.v3 import ( |
| 16 | identity_providers_client) |
Rodrigo Duarte | d96e29c | 2016-04-08 11:53:43 -0300 | [diff] [blame] | 17 | from keystone_tempest_plugin.services.identity.v3 import ( |
Rodrigo Duarte | 179085d | 2016-04-13 13:56:37 -0300 | [diff] [blame] | 18 | mapping_rules_client) |
| 19 | from keystone_tempest_plugin.services.identity.v3 import ( |
Rodrigo Duarte | d96e29c | 2016-04-08 11:53:43 -0300 | [diff] [blame] | 20 | service_providers_client) |
Rodrigo Duarte | e508fe0 | 2016-06-02 16:08:39 -0300 | [diff] [blame] | 21 | from keystone_tempest_plugin.services.identity.v3 import auth_client |
| 22 | from keystone_tempest_plugin.services.identity.v3 import saml2_client |
Rodrigo Duarte | 4666c64 | 2016-04-06 11:52:19 -0300 | [diff] [blame] | 23 | |
| 24 | from tempest import clients |
| 25 | |
| 26 | |
| 27 | class Manager(clients.Manager): |
| 28 | |
Rodrigo Duarte | 3b0cd80 | 2017-01-05 13:06:29 -0300 | [diff] [blame] | 29 | def __init__(self, credentials): |
| 30 | super(Manager, self).__init__(credentials) |
Rodrigo Duarte | 4666c64 | 2016-04-06 11:52:19 -0300 | [diff] [blame] | 31 | |
Rodrigo Duarte | e508fe0 | 2016-06-02 16:08:39 -0300 | [diff] [blame] | 32 | self.auth_client = auth_client.AuthClient(self.auth_provider) |
Rodrigo Duarte | 4666c64 | 2016-04-06 11:52:19 -0300 | [diff] [blame] | 33 | self.identity_providers_client = ( |
| 34 | identity_providers_client.IdentityProvidersClient( |
| 35 | self.auth_provider)) |
Rodrigo Duarte | 179085d | 2016-04-13 13:56:37 -0300 | [diff] [blame] | 36 | self.mapping_rules_client = ( |
| 37 | mapping_rules_client.MappingRulesClient( |
| 38 | self.auth_provider)) |
Rodrigo Duarte | e508fe0 | 2016-06-02 16:08:39 -0300 | [diff] [blame] | 39 | self.saml2_client = saml2_client.Saml2Client() |
Rodrigo Duarte | d96e29c | 2016-04-08 11:53:43 -0300 | [diff] [blame] | 40 | self.service_providers_client = ( |
| 41 | service_providers_client.ServiceProvidersClient( |
| 42 | self.auth_provider)) |