diff options
Diffstat (limited to 'doctor_tests')
-rw-r--r-- | doctor_tests/identity_auth.py | 3 | ||||
-rw-r--r-- | doctor_tests/scenario/__init__.py | 5 |
2 files changed, 6 insertions, 2 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/doctor_tests/scenario/__init__.py b/doctor_tests/scenario/__init__.py index b9dfa307..4278bb26 100644 --- a/doctor_tests/scenario/__init__.py +++ b/doctor_tests/scenario/__init__.py @@ -6,12 +6,15 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +import os + from oslo_config import cfg OPTS = [ cfg.StrOpt('test_case', - default='fault_management', + default=os.environ.get('TEST_CASE', 'fault_management'), + choices=['all', 'fault_management', 'maintenance'], help="A name of test case to be executed," " choices are 'all', 'fault_management' or 'maintenance'." " Set 'all' to execute all the test cases existing in" |