diff --git a/tools/deployment/common/run-helm-tests.sh b/tools/deployment/common/run-helm-tests.sh index 17fd52990a..27e7db2d1c 100755 --- a/tools/deployment/common/run-helm-tests.sh +++ b/tools/deployment/common/run-helm-tests.sh @@ -10,7 +10,7 @@ timeout=${OSH_TEST_TIMEOUT:-900} run_tests() { # Delete the test pod if it still exists kubectl delete pods -l application=${APPLICATION},release_group=${RELEASE_GROUP},component=test --namespace=${NAMESPACE} --ignore-not-found - helm test ${APPLICATION} --timeout $timeout + helm test ${APPLICATION} --timeout ${timeout}s --namespace=${NAMESPACE} } for i in $(seq 1 ${HELM_TESTS_TRIES}); do diff --git a/tools/deployment/component/cinder/cinder.sh b/tools/deployment/component/cinder/cinder.sh index 67fc1467db..457773b230 100755 --- a/tools/deployment/component/cinder/cinder.sh +++ b/tools/deployment/component/cinder/cinder.sh @@ -15,6 +15,7 @@ set -xe #NOTE: Get the over-rides to use : ${OSH_EXTRA_HELM_ARGS_CINDER:="$(./tools/deployment/common/get-values-overrides.sh cinder)"} +: ${RUN_HELM_TESTS:="yes"} #NOTE: Lint and package chart make cinder @@ -75,4 +76,7 @@ openstack volume type list --default # Delete the test pod if it still exists kubectl delete pods -l application=cinder,release_group=cinder,component=test --namespace=openstack --ignore-not-found -helm test cinder --timeout 900 + +if [ "x${RUN_HELM_TESTS}" != "xno" ]; then + ./tools/deployment/common/run-helm-tests.sh cinder +fi diff --git a/tools/deployment/component/glance/glance.sh b/tools/deployment/component/glance/glance.sh index 31a32ea2d8..feb237a6a7 100755 --- a/tools/deployment/component/glance/glance.sh +++ b/tools/deployment/component/glance/glance.sh @@ -27,6 +27,8 @@ make glance : ${GLANCE_BACKEND:="pvc"} tee /tmp/glance.yaml <