From 5cf195184e0172795611c0aabc3a070d43d32da4 Mon Sep 17 00:00:00 2001 From: Yi Cai Date: Thu, 8 Jun 2023 13:40:42 -0400 Subject: [PATCH] Updated 022 test step 4 verification Signed-off-by: Yi Cai --- tests/k8s/1-022_validate_notifications/04-delete-app.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/k8s/1-022_validate_notifications/04-delete-app.yaml b/tests/k8s/1-022_validate_notifications/04-delete-app.yaml index 8d8f911b7..c7b6c781a 100644 --- a/tests/k8s/1-022_validate_notifications/04-delete-app.yaml +++ b/tests/k8s/1-022_validate_notifications/04-delete-app.yaml @@ -7,4 +7,8 @@ commands: kubectl delete -n $NAMESPACE application.argoproj.io my-app-3 - script: sleep 5 - script: | - ! kubectl get -n $NAMESPACE application.argoproj.io my-app-3 \ No newline at end of file + output=$(kubectl get -n $NAMESPACE application.argoproj.io my-app-3 --no-headers 2>/dev/null) + if [ -n "$output" ]; then + echo "my-app-3 still exists" + exit 1 + fi \ No newline at end of file