-
Notifications
You must be signed in to change notification settings - Fork 25
/
test_backend_hybrid.py
71 lines (56 loc) · 2.7 KB
/
test_backend_hybrid.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2014 SUSE Linux Products GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import uuid
from keystone.common import ldap as common_ldap
from keystone import config
from keystone import tests
from keystone.tests import fakeldap
from keystone.tests import test_backend
from keystone.tests import test_backend_sql
DEFAULT_DOMAIN_ID = config.CONF.identity.default_domain_id
class HybridIdentity(test_backend_sql.SqlIdentity, test_backend.IdentityTests):
def setUp(self):
super(HybridIdentity, self).setUp()
common_ldap.register_handler('fake://', fakeldap.FakeLdap)
tenant = {'id': uuid.uuid4().hex,
'name': 'demo',
'domain_id': DEFAULT_DOMAIN_ID}
self.assignment_api.create_project(tenant['id'], tenant)
def config_files(self):
config_files = super(HybridIdentity, self).config_files()
config_files.append(tests.dirs.tests_conf('backend_hybrid.conf'))
return config_files
def config_overrides(self):
super(HybridIdentity, self).config_overrides()
self.config_fixture.config(
group='identity',
driver='keystone.identity.backends.hybrid.Identity')
def test_delete_project_with_user_association(self):
self.skipTest('Conflicts with default project setting')
def test_get_role_by_user_and_project_with_user_in_group(self):
self.skipTest('Conflicts with default project setting')
def test_get_roles_for_user_and_domain(self):
self.skipTest('Conflicts with default project setting')
def test_list_projects(self):
self.skipTest('Conflicts with default project setting')
def test_list_projects_for_domain(self):
self.skipTest('Conflicts with default project setting')
def test_list_projects_for_user(self):
self.skipTest('Conflicts with default project setting')
def test_list_projects_for_user_with_grants(self):
self.skipTest('Conflicts with default project setting')
def test_multi_group_grants_on_project_domain(self):
self.skipTest('Conflicts with default project setting')
def test_multi_role_grant_by_user_group_on_project_domain(self):
self.skipTest('Conflicts with default project setting')