diff options
| author | Zuul <zuul@review.opendev.org> | 2022-09-06 11:59:30 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-09-06 11:59:30 +0000 |
| commit | 2a4a8fce31c12114e8f472c24dd96864b5bd2bd2 (patch) | |
| tree | 9288ed91a0e4efdab2ba9548d693c6eaf14a8539 /tests | |
| parent | 2c2dc39b3bb39a27e6f94dbd797c9406bf512109 (diff) | |
| parent | 5b1da017988c987fc68b55d1f45b5d2676474ce1 (diff) | |
| download | kolla-2a4a8fce31c12114e8f472c24dd96864b5bd2bd2.tar.gz kolla-2a4a8fce31c12114e8f472c24dd96864b5bd2bd2.zip | |
Merge "Fix CVE-2022-38060"
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', |
