From 72ac7a5541e510cadfec0dc6754c5cf52503b187 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 25 Feb 2016 08:19:35 +0800 Subject: Reconfigure keystone service Partially-implements: bp kolla-reconfig Change-Id: Ied293e59bf4531e88a0e5e5bf9a5f5f495d2a0e7 --- tests/test_set_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_set_config.py b/tests/test_set_config.py index 43884bdb3..03975d156 100644 --- a/tests/test_set_config.py +++ b/tests/test_set_config.py @@ -38,7 +38,8 @@ class LoadFromFile(base.BaseTestCase): mo = mock.mock_open(read_data=in_config) with mock.patch.object(set_configs, 'open', mo): - set_configs.load_config() + config = set_configs.load_config() + set_configs.copy_config(config) self.assertEqual([ mock.call('/var/lib/kolla/config_files/config.json'), mock.call().__enter__(), @@ -59,7 +60,8 @@ class LoadFromEnv(base.BaseTestCase): mo = mock.mock_open() with mock.patch.object(set_configs, 'open', mo): with mock.patch.dict('os.environ', {'KOLLA_CONFIG': in_config}): - set_configs.load_config() + config = set_configs.load_config() + set_configs.copy_config(config) self.assertEqual([mock.call('/run_command', 'w+'), mock.call().__enter__(), mock.call().write(u'/bin/true'), -- cgit v1.2.3