aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/basic_network.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/scenario/basic_network.py')
-rw-r--r--src/onaptests/scenario/basic_network.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/onaptests/scenario/basic_network.py b/src/onaptests/scenario/basic_network.py
index a40dc06..3970700 100644
--- a/src/onaptests/scenario/basic_network.py
+++ b/src/onaptests/scenario/basic_network.py
@@ -3,14 +3,15 @@
import logging
import time
-from xtesting.core import testcase
from onapsdk.configuration import settings
from onapsdk.exceptions import SDKException
-
-from onaptests.steps.instantiate.vl_ala_carte import YamlTemplateVlAlaCarteInstantiateStep
+from onaptests.scenario.scenario_base import ScenarioBase
+from onaptests.steps.instantiate.vl_ala_carte import \
+ YamlTemplateVlAlaCarteInstantiateStep
from onaptests.utils.exceptions import OnapTestException
-class BasicNetwork(testcase.TestCase):
+
+class BasicNetwork(ScenarioBase):
"""Onboard then instantiate a simple Network with ONAP."""
__logger = logging.getLogger(__name__)
@@ -18,10 +19,7 @@ class BasicNetwork(testcase.TestCase):
def __init__(self, **kwargs):
"""Init Basic Network use case."""
# import basic_network_nomulticloud_settings needed
- if "case_name" not in kwargs:
- kwargs["case_name"] = 'basic_network'
- super(BasicNetwork, self).__init__(**kwargs)
- self.__logger.debug("BasicNetwork init started")
+ super().__init__('basic_network', **kwargs)
self.test = YamlTemplateVlAlaCarteInstantiateStep(
cleanup=settings.CLEANUP_FLAG)
self.start_time = None