From 49e1c502499c721ed025f98985be9168bd797b45 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 21 Dec 2015 08:33:47 -0500 Subject: [PATCH] Improve test_environment_dirs verifylist check This improves the test_environment_dirs check for verifylist so that it includes a check for environment_directories. Change-Id: Iddb9fc3092d3d92dce1dfd640b76ea6d38854a49 --- .../tests/v1/overcloud_deploy/test_overcloud_deploy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tripleoclient/tests/v1/overcloud_deploy/test_overcloud_deploy.py b/tripleoclient/tests/v1/overcloud_deploy/test_overcloud_deploy.py index 982c1b09f..6560517ba 100644 --- a/tripleoclient/tests/v1/overcloud_deploy/test_overcloud_deploy.py +++ b/tripleoclient/tests/v1/overcloud_deploy/test_overcloud_deploy.py @@ -525,12 +525,16 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud): tmp_dir = self.useFixture(fixtures.TempDir()) test_env = os.path.join(tmp_dir.path, 'foo.yaml') + env_dirs = [os.path.join(os.environ.get('HOME', ''), '.tripleo', + 'environments'), tmp_dir.path] + with open(test_env, 'w') as temp_file: temp_file.write('#just a comment') arglist = ['--templates', '--environment-directory', tmp_dir.path] verifylist = [ ('templates', '/usr/share/openstack-tripleo-heat-templates/'), + ('environment_directories', env_dirs), ] def _fake_heat_deploy(self, stack, stack_name, template_path,