-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add charts submodule and test-kong-chart.sh script for regression test
- Loading branch information
1 parent
c1b9bc6
commit 196c46b
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "hack/test/charts"] | ||
path = hack/test/charts | ||
url = https://github.com/Kong/charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Update submodule to the latest commit | ||
git submodule update --init --recursive | ||
|
||
# Loop through each directory in charts/charts and run helm dependency update | ||
for dir in charts/charts/*; do | ||
if [ -d "$dir" ]; then | ||
cd "$dir" | ||
helm dependency update | ||
cd - | ||
fi | ||
done | ||
|
||
# Run make test.golden and check return code | ||
make -C charts/ test.golden | ||
if [ $? -eq 0 ]; then | ||
echo "Tests passed successfully."; exit 0 | ||
else | ||
echo "Tests failed."; exit 1 | ||
fi |