summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2018-04-23 13:45:26 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2018-04-23 13:45:26 +0800
commit62bbcb5c9c24a1801c68ca5f2ec8a03c13b35ff1 (patch)
treee577ff3b4f1156c75ed08f32c73941ebda12e7c1
parent697f0cc6ed39b139a2ef022b8e5ef8ef80bbff19 (diff)
bugfix: certificate for https for MCP in baremetal
In Mcp baremetal env, doctor test is always failed because of ssl certificate for https. Change-Id: Ia443c6463fe177ff4e1ab5a86429750fbd23740c Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
-rw-r--r--doctor_tests/identity_auth.py3
-rw-r--r--tox.ini1
2 files changed, 3 insertions, 1 deletions
diff --git a/doctor_tests/identity_auth.py b/doctor_tests/identity_auth.py
index 0d429597..62b45ede 100644
--- a/doctor_tests/identity_auth.py
+++ b/doctor_tests/identity_auth.py
@@ -40,4 +40,5 @@ def get_session(auth=None):
"""Get a user credentials auth session."""
if auth is None:
auth = get_identity_auth()
- return session.Session(auth=auth)
+ return session.Session(auth=auth,
+ verify=os.environ.get('OS_CACERT'))
diff --git a/tox.ini b/tox.ini
index 2eaadacd..53efbfe3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,6 +21,7 @@ passenv =
OS_PROJECT_DOMAIN_NAME
OS_PROJECT_DOMAIN_ID
OS_REGION_NAME
+ OS_CACERT
IMAGE_NAME
VM_COUNT
PROFILER_TYPE