keystone.tests.unit.identity.backends.test_ldap

Source code for keystone.tests.unit.identity.backends.test_ldap

# 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.

from oslo_config import fixture as config_fixture

from keystone.identity.backends import ldap
from keystone.tests.unit import core
from keystone.tests.unit.identity.backends import test_base
from keystone.tests.unit.ksfixtures import ldapdb


[docs]class TestIdentityDriver(core.BaseTestCase, test_base.IdentityDriverTests): allows_name_update = False allows_self_service_change_password = False expected_is_domain_aware = False expected_default_assignment_driver = 'sql' expected_is_sql = False expected_generates_uuids = False
[docs] def setUp(self): super(TestIdentityDriver, self).setUp() config_fixture_ = self.useFixture(config_fixture.Config()) config_fixture_.config( group='ldap', url='fake://memory', user='cn=Admin', password='password', suffix='cn=example,cn=com') self.useFixture(ldapdb.LDAPDatabase()) self.driver = ldap.Identity()
[docs] def test_delete_user(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_delete_user_no_user_exc(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_delete_group(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_delete_group_doesnt_exist_exc(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_remove_user_from_group(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_remove_user_from_group_not_in_group(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_remove_user_from_group_no_user(self): self.skip_test_overrides('N/A: LDAP has no write support')
[docs] def test_remove_user_from_group_no_group(self): self.skip_test_overrides('N/A: LDAP has no write support')
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.