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