Skip to content

Commit

Permalink
Clone helm charts repo before testing. Otherwise we do not
Browse files Browse the repository at this point in the history
have sources

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Dec 9, 2024
1 parent 0a5ad67 commit 1c97cde
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test_helm_rails_ex_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_curl_connection(self):
assert self.hc_api.helm_installation()
self.hc_api.package_name = "redhat-ruby-rails-application"
assert self.hc_api.helm_package()
pod_name = f"rails_{VERSION.replace(".", "")}"
pod_name = f"rails-{VERSION.replace(".", "")}"
assert self.hc_api.helm_installation(
values={
"ruby_version": f"{VERSION}{TAG}",
Expand All @@ -78,7 +78,7 @@ def test_by_helm_test(self):
assert self.hc_api.helm_installation()
self.hc_api.package_name = "redhat-ruby-rails-application"
assert self.hc_api.helm_package()
pod_name = f"rails_{VERSION.replace(".", "")}"
pod_name = f"rails-{VERSION.replace(".", "")}"
assert self.hc_api.helm_installation(
values={
"ruby_version": f"{VERSION}{TAG}",
Expand Down
4 changes: 2 additions & 2 deletions test/test_helm_ruby_ex_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_curl_connection(self):
assert self.hc_api.helm_installation()
self.hc_api.package_name = "redhat-ruby-rails-application"
assert self.hc_api.helm_package()
pod_name = f"rails_{VERSION.replace(".", "")}"
pod_name = f"rails-{VERSION.replace(".", "")}"
assert self.hc_api.helm_installation(
values={
"ruby_version": f"{VERSION}{TAG}",
Expand All @@ -78,7 +78,7 @@ def test_by_helm_test(self):
assert self.hc_api.helm_installation()
self.hc_api.package_name = "redhat-ruby-rails-application"
assert self.hc_api.helm_package()
pod_name = f"rails_{VERSION.replace(".", "")}"
pod_name = f"rails-{VERSION.replace(".", "")}"
assert self.hc_api.helm_installation(
values={
"ruby_version": f"{VERSION}{TAG}",
Expand Down
4 changes: 4 additions & 0 deletions test/test_helm_ruby_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
@pytest.fixture(scope="module")
def helm_api(request):
helm_api = HelmChartsAPI(path=test_dir / "../charts/redhat", package_name="redhat-ruby-imagestreams", tarball_dir=test_dir)
helm_api.clone_helm_chart_repo(
repo_url="https://github.com/sclorg/helm-charts", repo_name="helm-charts",
subdir="charts/redhat"
)
# app_name = os.path.basename(request.param)
yield helm_api
pass
Expand Down

0 comments on commit 1c97cde

Please sign in to comment.