Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions acceptance/bundle/resources/alerts/basic/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 5 additions & 1 deletion acceptance/bundle/resources/alerts/basic/script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
denik marked this conversation as resolved.
Resolved
printf '\n%s\n' "OK: alert does not exist"

trace $CLI bundle summary
Loading