From: mrichomme Date: Wed, 20 May 2020 08:36:54 +0000 (+0200) Subject: Fix setup-hvves script X-Git-Tag: 1.6.2~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=24b8e8829a7834d60fa793d70c246a812ec9c5b0;p=testsuite.git Fix setup-hvves script the grep used in the kubectl command to retrieve the hv-ves collector is too wide. It retrieves the right pod and the euphemeral test pod created by the test job as a consequence the HVESPOD is not correct and triggers an error simple solution consists in putting a stronger constaint on the grep Issue-ID: INT-1594 Signed-off-by: mrichomme Change-Id: Ib66dc5be7d1d6809432320047c9a0406e75378fd --- diff --git a/setup-hvves.sh b/setup-hvves.sh index f81799b6..ab9b4af7 100755 --- a/setup-hvves.sh +++ b/setup-hvves.sh @@ -7,7 +7,7 @@ NAMESPACE=${NAMESPACE:-onap} DIR=${DIR:-/tmp} -HVVESPOD=$(kubectl -n $NAMESPACE get pods --no-headers=true -o custom-columns=:metadata.name | grep hv-ves) +HVVESPOD=$(kubectl -n $NAMESPACE get pods --no-headers=true -o custom-columns=:metadata.name | grep dcae-hv-ves) generate_ca_key_cert () {