Merge "Fix helm test method"

This commit is contained in:
Zuul 2021-11-10 16:54:50 +00:00 committed by Gerrit Code Review
commit c74b35e958
3 changed files with 15 additions and 7 deletions

View File

@ -16,6 +16,7 @@ set -xe
#NOTE: Get the over-rides to use
: ${OSH_EXTRA_HELM_ARGS_BARBICAN:="$(./tools/deployment/common/get-values-overrides.sh barbican)"}
: ${RUN_HELM_TESTS:="yes"}
#NOTE: Lint and package chart
make barbican
@ -29,4 +30,7 @@ helm upgrade --install barbican ./barbican \
#NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh openstack
helm test barbican
# Run helm test
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh barbican
fi

View File

@ -16,6 +16,7 @@ set -xe
#NOTE: Get the over-rides to use
: ${OSH_EXTRA_HELM_ARGS_BARBICAN:="$(./tools/deployment/common/get-values-overrides.sh barbican)"}
: ${RUN_HELM_TESTS:="yes"}
#NOTE: Lint and package chart
make barbican
@ -29,6 +30,7 @@ helm upgrade --install barbican ./barbican \
#NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh openstack
# Delete the test pod if it still exists
kubectl delete pods -l application=barbican,release_group=barbican,component=test --namespace=openstack --ignore-not-found
helm test barbican
# Run helm tests
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh barbican
fi

View File

@ -16,6 +16,7 @@ set -xe
#NOTE: Get the over-rides to use
: ${OSH_EXTRA_HELM_ARGS_HORIZON:="$(./tools/deployment/common/get-values-overrides.sh horizon)"}
: ${RUN_HELM_TESTS:="yes"}
#NOTE: Lint and package chart
make horizon
@ -32,6 +33,7 @@ helm upgrade --install horizon ./horizon \
#NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh openstack
# Delete the test pod if it still exists
kubectl delete pods -l application=horizon,release_group=horizon,component=test --namespace=openstack --ignore-not-found
helm test horizon
# Run helm tests
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh horizon
fi