-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm port configuration improvements and unit tests (#3264)
* Simplify port config and add unit tests * Add travis job for helm unit tests * Debug helm plugin issues * Fix node port * Follow best practice from the Prometheus chart * Address PR feedback * Fix typo * USe our own fork of helm-unittest
- Loading branch information
1 parent
37bd86c
commit 80fd661
Showing
8 changed files
with
409 additions
and
54 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
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,26 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "Stratos Helm Chart Unit Tests" | ||
echo "=============================" | ||
|
||
echo "Installing Helm" | ||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh | ||
chmod 700 get_helm.sh | ||
./get_helm.sh | ||
|
||
echo "Helm Init (Client)" | ||
helm init --client-only | ||
|
||
helm version --client | ||
|
||
echo "Install Helm unit test plugin" | ||
helm plugin install https://github.com/cf-stratos/helm-unittest | ||
|
||
# Run unit tests | ||
cd deploy/kubernetes | ||
helm unittest console | ||
|
||
# Run lint | ||
helm lint console |
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
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
.project | ||
.idea/ | ||
*.tmproj | ||
tests/ |
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
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
Oops, something went wrong.