Merge "fix the default values for token and password auth"
This commit is contained in:
commit
15ffd4f017
@ -223,9 +223,9 @@ FILE_OPTIONS = {
|
||||
'auth': [
|
||||
cfg.ListOpt('methods', default=_DEFAULT_AUTH_METHODS),
|
||||
cfg.StrOpt('password',
|
||||
default='keystone.auth.plugins.token.Token'),
|
||||
cfg.StrOpt('token',
|
||||
default='keystone.auth.plugins.password.Password'),
|
||||
cfg.StrOpt('token',
|
||||
default='keystone.auth.plugins.token.Token'),
|
||||
#deals with REMOTE_USER authentication
|
||||
cfg.StrOpt('external',
|
||||
default='keystone.auth.plugins.external.ExternalDefault')],
|
||||
|
@ -17,3 +17,9 @@ class ConfigTestCase(test.TestCase):
|
||||
self.opt_in_group('paste_deploy', config_file='')
|
||||
self.assertEqual(config.find_paste_config(),
|
||||
test.etcdir('keystone.conf.sample'))
|
||||
|
||||
def test_config_default(self):
|
||||
self.assertEqual('keystone.auth.plugins.password.Password',
|
||||
CONF.auth.password)
|
||||
self.assertEqual('keystone.auth.plugins.token.Token',
|
||||
CONF.auth.token)
|
||||
|
Loading…
Reference in New Issue
Block a user