Skip to content

Commit

Permalink
Fix test suite
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Jul 30, 2024
1 parent 8dbb0b3 commit 820aad2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions container_ci_suite/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def __init__(
self.oc_api.create_project()
self.pod_json_data: dict = {}
self.pod_name_prefix: str = ""
self.namespace = self.set_namespace()

@staticmethod
def run_helm_command(
Expand All @@ -73,6 +74,9 @@ def run_helm_command(
shell=shell,
)

def set_namespace(self):
return self.oc_api.namespace

def delete_project(self):
self.oc_api.delete_project()

Expand Down
1 change: 1 addition & 0 deletions tests/test_helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class TestContainerCISuiteHelmCharts:

def setup_method(self):
flexmock(OpenShiftAPI).should_receive("create_project").and_return(True)
flexmock(HelmChartsAPI).should_receive("set_namespace").and_return("something")
self.helm_chart = HelmChartsAPI(
Path("foo_path"), package_name="postgresql-imagestreams", tarball_dir=test_dir
)
Expand Down

0 comments on commit 820aad2

Please sign in to comment.