Skip to content

Commit

Permalink
test: Update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinjfw committed Jun 6, 2020
1 parent 8612a75 commit 11e4030
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/scenarios/canary.sh.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##[debug]param: appName = "app"
##[debug]param: namespace = "default"
##[debug]param: chart = "/usr/src/charts/app"
##[debug]param: chart_version = ""
##[debug]param: values = "{"replicaCount": 1, "image": {"repository": "nginx", "tag": "latest"}}"
##[debug]param: dryRun = ""
##[debug]param: task = ""
Expand All @@ -12,6 +13,7 @@
##[debug]param: valueFiles = "[]"
##[debug]param: removeCanary =
##[debug]param: timeout = ""
##[debug]param: repository = ""
##[debug]env: KUBECONFIG="undefined"
##[debug]rendering value files [./values.yml] with: {"secrets":{"secret":"val"}}
[command]helm upgrade app-canary /usr/src/charts/app --install --wait --atomic --namespace=default --set=app.name=app --set=app.version=1234 --values=./values.yml --set=service.enabled=false --set=ingress.enabled=false
Expand Down
2 changes: 2 additions & 0 deletions tests/scenarios/helm3.sh.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##[debug]param: appName = "app"
##[debug]param: namespace = "default"
##[debug]param: chart = "/usr/src/charts/app"
##[debug]param: chart_version = ""
##[debug]param: values = "{"replicaCount": 1, "image": {"repository": "nginx", "tag": "latest"}}"
##[debug]param: dryRun = ""
##[debug]param: task = ""
Expand All @@ -12,6 +13,7 @@
##[debug]param: valueFiles = "[]"
##[debug]param: removeCanary =
##[debug]param: timeout = ""
##[debug]param: repository = ""
##[debug]env: KUBECONFIG="undefined"
##[debug]rendering value files [./values.yml] with: {"secrets":{"secret":"val"}}
[command]helm3 upgrade app /usr/src/charts/app --install --wait --atomic --namespace=default --set=app.name=app --set=app.version=1234 --values=./values.yml
Expand Down
2 changes: 2 additions & 0 deletions tests/scenarios/production.sh.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##[debug]param: appName = "app"
##[debug]param: namespace = "default"
##[debug]param: chart = "/usr/src/charts/app"
##[debug]param: chart_version = ""
##[debug]param: values = "{"replicaCount": 1, "image": {"repository": "nginx", "tag": "latest"}}"
##[debug]param: dryRun = ""
##[debug]param: task = ""
Expand All @@ -12,6 +13,7 @@
##[debug]param: valueFiles = "[]"
##[debug]param: removeCanary =
##[debug]param: timeout = "30"
##[debug]param: repository = ""
##[debug]env: KUBECONFIG="undefined"
##[debug]rendering value files [./values.yml] with: {"secrets":{"secret":"val"}}
[command]helm upgrade app /usr/src/charts/app --install --wait --atomic --namespace=default --set=app.name=app --set=app.version=1234 --timeout=30 --values=./values.yml
Expand Down
7 changes: 5 additions & 2 deletions tests/test-snap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
set -e
cd tests

cp ./helm-fake /usr/bin/helm
cp ./helm-fake /usr/bin/helm3
export PATH="/tmp/bin:$PATH"

mkdir -p /tmp/bin
cp ./helm-fake /tmp/bin/helm
cp ./helm-fake /tmp/bin/helm3

for s in $(find ./scenarios/ -mindepth 1 | grep -v 'snap'); do
echo $s
Expand Down

0 comments on commit 11e4030

Please sign in to comment.