summaryrefslogtreecommitdiffstats
path: root/doctor_tests
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 /doctor_tests
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>
Diffstat (limited to 'doctor_tests')
-rw-r--r--doctor_tests/identity_auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doctor_tests/identity_auth.py b/doctor_tests/identity_auth.py
index 0d42959..62b45ed 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'))