summaryrefslogtreecommitdiff
path: root/keystone_tempest_plugin/tests/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone_tempest_plugin/tests/base.py')
-rw-r--r--keystone_tempest_plugin/tests/base.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/keystone_tempest_plugin/tests/base.py b/keystone_tempest_plugin/tests/base.py
deleted file mode 100644
index 6ba6659..0000000
--- a/keystone_tempest_plugin/tests/base.py
+++ /dev/null
@@ -1,41 +0,0 @@
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
15from tempest.common import credentials_factory as common_creds
16from tempest import test
17
18from keystone_tempest_plugin import clients
19
20
21class BaseIdentityTest(test.BaseTestCase):
22
23 # The version of the identity that will be used in the tests.
24 identity_version = 'v3'
25
26 # NOTE(rodrigods): for now, all tests are in the admin scope, if
27 # necessary, another class can be created to handle non-admin tests.
28 credential_type = 'identity_admin'
29
30 @classmethod
31 def setup_clients(cls):
32 super(BaseIdentityTest, cls).setup_clients()
33 credentials = common_creds.get_configured_admin_credentials(
34 cls.credential_type, identity_version=cls.identity_version)
35 cls.keystone_manager = clients.Manager(credentials)
36 cls.auth_client = cls.keystone_manager.auth_client
37 cls.idps_client = cls.keystone_manager.identity_providers_client
38 cls.mappings_client = cls.keystone_manager.mapping_rules_client
39 cls.saml2_client = cls.keystone_manager.saml2_client
40 cls.sps_client = cls.keystone_manager.service_providers_client
41 cls.tokens_client = cls.keystone_manager.token_v3_client