aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/scenario_base.py
blob: 6fea8115eda977331658b342d50255004098d440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"])