Fix helm test method about compute-kit

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

Change-Id: I324c4e8ee8f8cd12bae427511747a91d8d1f8c5a
This commit is contained in:
jinyuanliu 2021-11-02 02:54:18 -04:00
parent 119a7c7532
commit b6870e7f4a

View File

@ -15,6 +15,7 @@ set -xe
stages="prepare deploy checkdns setupdns"
OSH_INFRA_PATH=${OSH_INFRA_PATH:="../openstack-helm-infra"}
: ${RUN_HELM_TESTS:="yes"}
function get_node_ip() {
local phys_int=$(ip route get 1 | grep -o 'dev.*' | awk '{print($2)}')
@ -227,11 +228,10 @@ EOF
# run couple of openstack commands and nova tests
openstack compute service list
openstack hypervisor list
if [ "x${RUN_HELM_TESTS}" == "xno" ]; then
exit 0
if [ "x${RUN_HELM_TESTS}" != "xno" ]; then
./tools/deployment/common/run-helm-tests.sh nova
./tools/deployment/common/run-helm-tests.sh neutron
fi
helm test nova --timeout 900
helm test neutron --timeout 900
}
if [[ $# == 0 ]] ; then
@ -246,4 +246,4 @@ if [[ ! $stages =~ .*${1}.* ]] ; then
exit 1
fi
${1}_tf
${1}_tf