fix integration test
This commit is contained in:
parent
c6236a15bb
commit
27da8a6b7a
|
|
@ -57,12 +57,12 @@ trap "{ $kubectl delete namespace ${test_ns}; }" EXIT # remove namespace wheneve
|
||||||
test_start "happypath - simple rollout of httpbin chart"
|
test_start "happypath - simple rollout of httpbin chart"
|
||||||
|
|
||||||
info "Diffing ${dir}/happypath.yaml"
|
info "Diffing ${dir}/happypath.yaml"
|
||||||
helmfile -f ${dir}/happypath.yaml diff --detailed-exitcode
|
${helmfile} -f ${dir}/happypath.yaml diff --detailed-exitcode
|
||||||
code=$?
|
code=$?
|
||||||
[ ${code} -eq 2 ] || fail "unexpected exit code returned by helmfile diff: ${code}"
|
[ ${code} -eq 2 ] || fail "unexpected exit code returned by helmfile diff: ${code}"
|
||||||
|
|
||||||
info "Templating ${dir}/happypath.yaml"
|
info "Templating ${dir}/happypath.yaml"
|
||||||
helmfile -f ${dir}/happypath.yaml template
|
${helmfile} -f ${dir}/happypath.yaml template
|
||||||
code=$?
|
code=$?
|
||||||
[ ${code} -eq 0 ] || fail "unexpected exit code returned by helmfile template: ${code}"
|
[ ${code} -eq 0 ] || fail "unexpected exit code returned by helmfile template: ${code}"
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ retry 5 "curl --fail $(minikube service --url --namespace=${test_ns} httpbin-htt
|
||||||
[ ${retry_result} -eq 0 ] || fail "httpbin failed to return 200 OK"
|
[ ${retry_result} -eq 0 ] || fail "httpbin failed to return 200 OK"
|
||||||
|
|
||||||
info "Applying ${dir}/happypath.yaml"
|
info "Applying ${dir}/happypath.yaml"
|
||||||
helmfile -f ${dir}/happypath.yaml apply
|
${helmfile} -f ${dir}/happypath.yaml apply
|
||||||
code=$?
|
code=$?
|
||||||
[ ${code} -eq 0 ] || fail "unexpected exit code returned by helmfile apply: ${code}"
|
[ ${code} -eq 0 ] || fail "unexpected exit code returned by helmfile apply: ${code}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue