Fix helm test method about horizon

This patch makes the helm test command more standard by calling script
of common.

Change-Id: I3a54d85f0c1d16f28d4b1194f69d3c1daa456976
This commit is contained in:
jinyuanliu 2021-10-17 02:20:24 -04:00
parent 9abc09bcd2
commit caeaafd01b

View File

@ -19,6 +19,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
@ -39,4 +40,7 @@ helm upgrade --install horizon ./horizon \
#NOTE: Wait for deploy
./tools/deployment/common/wait-for-pods.sh openstack
helm test horizon
# Run helm tests
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh horizon
fi