summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-03-08 13:22:46 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-03-08 13:22:46 +0000
commit2a3fe5315c2539c2508b60da81247dbeb7ebb8ed (patch)
treeee7657f529fa8475898eaad9447945ac00591197 /testcases
parent271ff49d29ebf4dbbfba1311beb9c9d46542dcc0 (diff)
parent8a7722ef9dc0a3eed8c18b129e7f58ae002d53a5 (diff)
Merge "Add support for SSL endpoints in Functest" into stable/brahmaputra
Diffstat (limited to 'testcases')
-rw-r--r--testcases/functest_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index f119c278a..9a8e602ac 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