diff options
Diffstat (limited to 'src/onaptests/scenario/scenario_base.py')
-rw-r--r-- | src/onaptests/scenario/scenario_base.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/onaptests/scenario/scenario_base.py b/src/onaptests/scenario/scenario_base.py new file mode 100644 index 0000000..6fea811 --- /dev/null +++ b/src/onaptests/scenario/scenario_base.py @@ -0,0 +1,20 @@ +import logging + +from onapsdk.configuration import settings +from xtesting.core import testcase + + +class ScenarioBase(testcase.TestCase): + """Scenario base class.""" + + __logger = logging.getLogger() + + def __init__(self, case_name_override, **kwargs): + """Init base scenario.""" + if "case_name" not in kwargs: + kwargs["case_name"] = case_name_override + self.__logger.info("Global Configuration:") + for val in settings._settings: + self.__logger.info("%s: %s", val, settings._settings[val]) + super().__init__(**kwargs) + self.__logger.debug("%s init started", kwargs["case_name"]) |