From 8a7722ef9dc0a3eed8c18b129e7f58ae002d53a5 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Fri, 4 Mar 2016 10:49:56 +0100 Subject: Add support for SSL endpoints in Functest JIRA: FUNCTEST-145 Change-Id: I051f1b71fda251e57d70f147433b9f038d30e7f9 Signed-off-by: jose.lausuch (cherry picked from commit d0a5214093293a2295038b0810fe776723895bc0) --- testcases/functest_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testcases/functest_utils.py') 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 -- cgit 1.2.3-korg