aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_set_config.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_set_config.py b/tests/test_set_config.py
index ca3a6bb95..e74376c60 100644
--- a/tests/test_set_config.py
+++ b/tests/test_set_config.py
@@ -59,24 +59,6 @@ class LoadFromFile(base.BaseTestCase):
mock.call().__exit__(None, None, None)], mo.mock_calls)
-class LoadFromEnv(base.BaseTestCase):
-
- def test_load_ok(self):
- in_config = json.dumps({'command': '/bin/true',
- 'config_files': {}})
-
- mo = mock.mock_open()
- with mock.patch.object(set_configs, 'open', mo):
- with mock.patch.dict('os.environ', {'KOLLA_CONFIG': in_config}):
- config = set_configs.load_config()
- set_configs.copy_config(config)
- self.assertEqual([mock.call('/run_command', 'w+'),
- mock.call().__enter__(),
- mock.call().write('/bin/true'),
- mock.call().__exit__(None, None, None)],
- mo.mock_calls)
-
-
FAKE_CONFIG_FILES = [
set_configs.ConfigFile(
'/var/lib/kolla/config_files/bar.conf',