aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-25 08:19:35 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-27 02:15:48 +0000
commit72ac7a5541e510cadfec0dc6754c5cf52503b187 (patch)
treef2fac072b1bfa46ea608ffea5635769443abc3a0 /tests
parent287e4faf99c2fe7a5d0a57334df35a6dc5e71f72 (diff)
downloadkolla-72ac7a5541e510cadfec0dc6754c5cf52503b187.tar.gz
kolla-72ac7a5541e510cadfec0dc6754c5cf52503b187.zip
Reconfigure keystone service
Partially-implements: bp kolla-reconfig Change-Id: Ied293e59bf4531e88a0e5e5bf9a5f5f495d2a0e7
Diffstat (limited to 'tests')
-rw-r--r--tests/test_set_config.py6
1 files changed, 4 insertions, 2 deletions
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'),