Merge "Fix helm test method about mistral"

This commit is contained in:
Zuul 2021-10-26 07:14:22 +00:00 committed by Gerrit Code Review
commit 96c7ec86c8
1 changed files with 7 additions and 3 deletions

View File

@ -13,6 +13,8 @@
# under the License.
set -xe
: ${RUN_HELM_TESTS:="yes"}
#NOTE: Lint and package chart
make mistral
@ -32,6 +34,8 @@ helm upgrade --install mistral ./mistral \
#NOTE: Validate Deployment
export OS_CLOUD=openstack_helm
openstack service list
# Delete the test pod if it still exists
kubectl delete pods -l application=mistral,release_group=mistral,component=test --namespace=openstack --ignore-not-found
helm test mistral
# Run helm test
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh mistral
fi