Skip to content

Commit

Permalink
test: fix helm-test to consider local changes of helm templates
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
  • Loading branch information
odubajDT committed Nov 1, 2023
1 parent 66668f5 commit 188f503
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/helm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
echo "running Helm tests"
tests=$(find ./.github/scripts/.helm-tests -maxdepth 1 -mindepth 1 -type d )

# substitute charts path with local ones, so tests won't file on changes to the helm template files
# the order is important, as each sed command replaces the first occurence of https://charts.lifecycle.keptn.sh
# with different filepath (cert-manager, lifecycle-operator, metrics-operator)
sed -ie '0,/https:\/\/charts.lifecycle.keptn.sh/{s/https:\/\/charts.lifecycle.keptn.sh/file:\/\/..\/klt-cert-manager\/chart/}' ./chart/Chart.yaml
sed -ie '0,/https:\/\/charts.lifecycle.keptn.sh/{s/https:\/\/charts.lifecycle.keptn.sh/file:\/\/..\/lifecycle-operator\/chart/}' ./chart/Chart.yaml
sed -ie '0,/https:\/\/charts.lifecycle.keptn.sh/{s/https:\/\/charts.lifecycle.keptn.sh/file:\/\/..\/metrics-operator\/chart/}' ./chart/Chart.yaml

errors=0
successful=0
failures=""
Expand Down

0 comments on commit 188f503

Please sign in to comment.