From 8853745104663be8dda96c7448756969f41f0456 Mon Sep 17 00:00:00 2001 From: "denis.bilenko" Date: Wed, 11 Nov 2026 17:19:01 +0000 Subject: [PATCH] acceptance: check only 'does not exist' after alert destroy in alerts/basic The backend now returns "Tree node with id ... does not exist" instead of "Alert with ID '...' does not exist." for a deleted alert. Co-authored-by: Isaac --- acceptance/bundle/resources/alerts/basic/output.txt | 5 ++--- acceptance/bundle/resources/alerts/basic/script | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/acceptance/bundle/resources/alerts/basic/output.txt b/acceptance/bundle/resources/alerts/basic/output.txt index a086fb92563..6a8d0b197c7 100644 --- a/acceptance/bundle/resources/alerts/basic/output.txt +++ b/acceptance/bundle/resources/alerts/basic/output.txt @@ -63,10 +63,9 @@ All files and directories at the following location will be deleted: /Workspace/ Destroy: 1 deleted ->>> [CLI] alerts-v2 get-alert [ALERT_ID] -Error: Alert with ID '[ALERT_ID]' does not exist. +=== assert that the alert is gone -Exit code: 1 +OK: alert does not exist >>> [CLI] bundle summary Name: alerts-basic-[UNIQUE_NAME] diff --git a/acceptance/bundle/resources/alerts/basic/script b/acceptance/bundle/resources/alerts/basic/script index e47c734d1bd..e2718a50bb0 100644 --- a/acceptance/bundle/resources/alerts/basic/script +++ b/acceptance/bundle/resources/alerts/basic/script @@ -16,6 +16,10 @@ trace $CLI bundle plan trace $CLI bundle destroy --auto-approve -errcode trace $CLI alerts-v2 get-alert $alert_id +title "assert that the alert is gone" +# The backend has returned more than one not-found message here, so check only the stable part. +musterr $CLI alerts-v2 get-alert $alert_id &> LOG.get-alert +contains.py "does not exist" < LOG.get-alert > /dev/null +printf '\n%s\n' "OK: alert does not exist" trace $CLI bundle summary