
ldap was accidentally supplying some of its own values rather than using the built-in fixtures, so it was providing the incorrect interface for a couple calls. also adds a test for get_user_by_name (skipped for ldap) and standardizes the kvs and ldap authenticate calls fix user authentication live ldap tests Change-Id: If1ccce1fd9c84622bb89344bc5d5c59b059d03ae
37 lines
970 B
Python
37 lines
970 B
Python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
|
|
import nose.exc
|
|
|
|
from keystone import config
|
|
from keystone import test
|
|
from keystone.common.ldap import fakeldap
|
|
from keystone.identity.backends import ldap as identity_ldap
|
|
|
|
import default_fixtures
|
|
import test_backend
|
|
|
|
|
|
CONF = config.CONF
|
|
|
|
|
|
def clear_database():
|
|
db = fakeldap.FakeShelve().get_instance()
|
|
db.clear()
|
|
|
|
|
|
class LDAPIdentity(test.TestCase, test_backend.IdentityTests):
|
|
def setUp(self):
|
|
super(LDAPIdentity, self).setUp()
|
|
CONF(config_files=[test.etcdir('keystone.conf'),
|
|
test.testsdir('test_overrides.conf'),
|
|
test.testsdir('backend_ldap.conf')])
|
|
clear_database()
|
|
self.identity_api = identity_ldap.Identity()
|
|
self.load_fixtures(default_fixtures)
|
|
|
|
def tearDown(self):
|
|
test.TestCase.tearDown(self)
|
|
|
|
def test_get_user_by_name(self):
|
|
raise nose.exc.SkipTest('not implemented in ldap yet')
|