PasteDeploy configuration contains class names which might change between releases. Keeping it separate from user-configurable parameters allows deployers to move paste-deploy ini file out of configuration directory to a place where it can be safely overwritten on updates e.g. under /usr/share/ DocImpact Change-Id: I9292ca6226c8430b93565dedd45cc842742a23e2
19 lines
634 B
Python
19 lines
634 B
Python
from keystone import config
|
|
from keystone import exception
|
|
from keystone import test
|
|
|
|
|
|
CONF = config.CONF
|
|
|
|
|
|
class ConfigTestCase(test.TestCase):
|
|
def test_paste_config(self):
|
|
self.assertEqual(config.find_paste_config(),
|
|
test.etcdir('keystone-paste.ini'))
|
|
self.opt_in_group('paste_deploy', config_file='XYZ')
|
|
self.assertRaises(exception.PasteConfigNotFound,
|
|
config.find_paste_config)
|
|
self.opt_in_group('paste_deploy', config_file='')
|
|
self.assertEqual(config.find_paste_config(),
|
|
test.etcdir('keystone.conf.sample'))
|