Skip to content

Commit 60af23e

Browse files
committed
fix(ci): ensure FUNCTION_NAME is not empty in verify.sh
1 parent 9352908 commit 60af23e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • .ci/tests/integration/cases/quoted-function-details

.ci/tests/integration/cases/quoted-function-details/verify.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,21 @@ PULSAR_NAMESPACE=${PULSAR_NAMESPACE:-"default"}
2626
PULSAR_RELEASE_NAME=${PULSAR_RELEASE_NAME:-"sn-platform"}
2727
E2E_KUBECONFIG=${E2E_KUBECONFIG:-"/tmp/e2e-k8s.config"}
2828
MANIFESTS_FILE="${BASE_DIR}"/.ci/tests/integration/cases/quoted-function-details/manifests.yaml
29-
FUNCTION_NAME=function-details-quoted-sample
30-
STS_NAME=${FUNCTION_NAME}-function
3129

3230
source "${BASE_DIR}"/.ci/helm.sh
3331

32+
FUNCTION_NAME=function-details-quoted-sample
33+
STS_NAME=${FUNCTION_NAME}-function
34+
3435
if [ ! "$KUBECONFIG" ]; then
3536
export KUBECONFIG=${E2E_KUBECONFIG}
3637
fi
3738

39+
if [ -z "${FUNCTION_NAME}" ]; then
40+
echo "function name is empty"
41+
exit 1
42+
fi
43+
3844
cleanup() {
3945
kubectl delete -f "${MANIFESTS_FILE}" > /dev/null 2>&1 || true
4046
}

0 commit comments

Comments
 (0)