From 1bcc53144367de2f6176c61b7ba382c370f47288 Mon Sep 17 00:00:00 2001 From: jinyuanliu Date: Sun, 17 Oct 2021 02:11:53 -0400 Subject: [PATCH] Fix helm test method about barbican This patch makes the helm test command more standard by calling script of common. Change-Id: I1232699f95abd8a2ab31867e82cd4484ffc2677e --- tools/deployment/multinode/160-barbican.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/deployment/multinode/160-barbican.sh b/tools/deployment/multinode/160-barbican.sh index daa5739afd..2f10c9bb9c 100755 --- a/tools/deployment/multinode/160-barbican.sh +++ b/tools/deployment/multinode/160-barbican.sh @@ -13,6 +13,8 @@ # under the License. set -xe +: ${RUN_HELM_TESTS:="yes"} + #NOTE: Lint and package chart make barbican @@ -30,6 +32,8 @@ helm upgrade --install barbican ./barbican \ export OS_CLOUD=openstack_helm openstack service list sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx -# 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