summaryrefslogtreecommitdiffstats
path: root/doctor_tests/scenario/__init__.py
blob: 4278bb26ea7378a17c8c272dd2dd5a3938bada68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# 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=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"
                    " this repo. Default is 'fault_management'. Another test"
                    " case can be specified only if a function named"
                    " test_<test_case>() was implemented in DoctorTest.",
               required=False),
]