diff options
Diffstat (limited to 'src/onaptests/steps/wrapper')
-rw-r--r-- | src/onaptests/steps/wrapper/helm_charts.py | 25 | ||||
-rw-r--r-- | src/onaptests/steps/wrapper/start.py | 1 |
2 files changed, 12 insertions, 14 deletions
diff --git a/src/onaptests/steps/wrapper/helm_charts.py b/src/onaptests/steps/wrapper/helm_charts.py index b8a6b21..f745150 100644 --- a/src/onaptests/steps/wrapper/helm_charts.py +++ b/src/onaptests/steps/wrapper/helm_charts.py @@ -4,12 +4,11 @@ from avionix import ChartBuilder, ChartDependency, ChartInfo from avionix.errors import HelmError from onaptests.steps.base import BaseStep from onaptests.utils.resources import get_local_dir -from onaptests.utils.exceptions import ( +from onaptests.utils.exceptions import ( EnvironmentPreparationException, EnvironmentCleanupException) - class HelmChartStep(BaseStep): """Basic operations on a docker container.""" @@ -36,7 +35,6 @@ class HelmChartStep(BaseStep): msg = f"{chart_info_file} not found." raise EnvironmentPreparationException(msg) from err - try: for dependency in chart_info["dependencies"]: dep = ChartDependency( @@ -48,16 +46,16 @@ class HelmChartStep(BaseStep): dependencies.append(dep) self.builder = ChartBuilder( - chart_info=ChartInfo( - api_version=chart_info["api_version"], - name=chart_info["chart_name"], - version=chart_info["version"], # SemVer 2 version - app_version=chart_info["app_version"], - dependencies=dependencies - ), - kubernetes_objects=[], - keep_chart=False - ) + chart_info=ChartInfo( + api_version=chart_info["api_version"], + name=chart_info["chart_name"], + version=chart_info["version"], # SemVer 2 version + app_version=chart_info["app_version"], + dependencies=dependencies + ), + kubernetes_objects=[], + keep_chart=False + ) except KeyError as err: msg = f"{chart_info_file} does not contain required keys." raise EnvironmentPreparationException(msg) from err @@ -82,7 +80,6 @@ class HelmChartStep(BaseStep): msg = "Error during helm release installation." raise EnvironmentPreparationException(msg) from err - def cleanup(self) -> None: """Uninstall helm release.""" try: diff --git a/src/onaptests/steps/wrapper/start.py b/src/onaptests/steps/wrapper/start.py index 18ba5df..8b950da 100644 --- a/src/onaptests/steps/wrapper/start.py +++ b/src/onaptests/steps/wrapper/start.py @@ -4,6 +4,7 @@ import requests from onaptests.steps.base import BaseStep from onaptests.utils.exceptions import TestConfigurationException + class SimulatorStartStep(BaseStep): """Basic operations on a docker container.""" |