diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2022-08-29 09:55:59 +0000 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2022-08-29 10:05:05 +0000 |
| commit | 5b1da017988c987fc68b55d1f45b5d2676474ce1 (patch) | |
| tree | b8e18e89f4ea8ffc55f0c9e8979e71fee002575c /tests | |
| parent | 91c2cc0d8d4caf8fa6567b95d8f7e7b4fc4dd443 (diff) | |
| download | kolla-5b1da017988c987fc68b55d1f45b5d2676474ce1.tar.gz kolla-5b1da017988c987fc68b55d1f45b5d2676474ce1.zip | |
Fix CVE-2022-38060
Closes-Bug: #1985784
Change-Id: I66476a2b396e2cbe41e68ac51f57aae1806b2ed8
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_set_config.py | 18 |
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', |
