summaryrefslogtreecommitdiffstats
path: root/functest/tests
diff options
context:
space:
mode:
authorCedric Ollivier <ollivier.cedric@gmail.com>2017-02-14 12:25:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-14 12:25:38 +0000
commit8b0f0b5b5ce3395dddd938fc43f048eb90d8da8e (patch)
treed69c008ef39c4c5b88b3b797cf4c0c3f64dc1bdf /functest/tests
parent145b5f3f9e1cf70c0825459ff641e05ea851fcfe (diff)
parent4c142226db85c89c5459737715223b7be30bd17e (diff)
Merge "Limit the substitution of ' in env vars"
Diffstat (limited to 'functest/tests')
-rw-r--r--functest/tests/unit/utils/test_openstack_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/tests/unit/utils/test_openstack_utils.py b/functest/tests/unit/utils/test_openstack_utils.py
index 0971b4e8..447271fc 100644
--- a/functest/tests/unit/utils/test_openstack_utils.py
+++ b/functest/tests/unit/utils/test_openstack_utils.py
@@ -379,6 +379,9 @@ class OSUtilsTesting(unittest.TestCase):
self._test_source_credentials('export OS_TENANT_NAME = "admin"')
self._test_source_credentials('OS_TENANT_NAME', value='')
self._test_source_credentials('export OS_TENANT_NAME', value='')
+ # This test will fail as soon as rc_file is fixed
+ self._test_source_credentials(
+ 'export "\'OS_TENANT_NAME\'" = "\'admin\'"')
@mock.patch('functest.utils.openstack_utils.os.getenv',
return_value=None)