diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-03-04 15:20:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-03-04 15:20:49 +0000 |
commit | 3b70767b85152cc79381104ba73c0afe9607f781 (patch) | |
tree | e5fa1f859ccc236c54a67f8d3646cd8ee796f67a /testcases | |
parent | def1634a5b8a2c8ca794fa878394234a8ebb3468 (diff) | |
parent | d0a5214093293a2295038b0810fe776723895bc0 (diff) |
Merge "Add support for SSL endpoints in Functest"
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/functest_utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index 7849782c..f7b83279 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -67,6 +67,12 @@ def get_credentials(service): "http://192.168.20.71:5000/v2.0"), tenant: os.environ.get("OS_TENANT_NAME", "admin"), }) + ssl = os.environ.get("OS_CACERT") + if ssl != None: + creds.update({"ca_cert":ssl}) + if not os.path.isfile(ssl): + print "WARNING: The 'OS_CACERT' environment variable is set to %s "\ + "but the file does not exist." % ssl return creds |