diff options
author | Juha Kosonen <juha.kosonen@nokia.com> | 2018-10-15 17:23:23 +0300 |
---|---|---|
committer | Juha Kosonen <juha.kosonen@nokia.com> | 2018-10-16 05:35:30 +0000 |
commit | a0aa4016fa0890932f1202c0f8c2c3b2c31ca564 (patch) | |
tree | feb652af3f36ae4b4b86740b67aff3632280ebe9 /functest/tests/unit/openstack | |
parent | 1d866c412c5803fed1c8e68a9e763577d3cd83f1 (diff) |
Do not create files in site-package directory
Use /home/opnfv/functest/data/rally/task directory for storing
temporary files when running rally tasks.
Also removes unused vm scenario from task service list.
Change-Id: Icfd4f99ebe6194360bda8bd88e497e018a9541a0
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 520331a06750dd02228f840c346402f52fb864e8)
Diffstat (limited to 'functest/tests/unit/openstack')
-rw-r--r-- | functest/tests/unit/openstack/rally/test_rally.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/tests/unit/openstack/rally/test_rally.py b/functest/tests/unit/openstack/rally/test_rally.py index 22ddb1cc5..149925730 100644 --- a/functest/tests/unit/openstack/rally/test_rally.py +++ b/functest/tests/unit/openstack/rally/test_rally.py @@ -267,6 +267,9 @@ class OSRallyTesting(unittest.TestCase): self.rally_base.prepare_run() @mock.patch('functest.opnfv_tests.openstack.rally.rally.os.path.exists') + @mock.patch('functest.opnfv_tests.openstack.rally.rally.shutil.copyfile') + @mock.patch('functest.opnfv_tests.openstack.rally.rally.shutil.copytree') + @mock.patch('functest.opnfv_tests.openstack.rally.rally.shutil.rmtree') def test_prepare_run_flavor_alt_creation_failed(self, *args): # pylint: disable=unused-argument self.rally_base.TESTS = ['test1', 'test2'] |