Skip to content

Commit

Permalink
Re-enable deleted check
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Sep 10, 2024
1 parent 2eb5822 commit fb1e1f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions tests/delete-after.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ module "check_delete_after_exists" {
resource "terraform_data" "bootstrap" {
input = module.delete_after.complete
}
# module "check_delete_after_deleted" {
# source = "../assertion"
# # source = "Invicton-Labs/assertion/null"
# # version = "0.2.4"
# depends_on = [
# // This forces a wait until the deletion has been completed as well
# module.delete_after
# ]
# condition = !fileexists(module.delete_after.complete ? module.delete_after.filename : "")
# error_message = "delete-after (deleted): expected file to be deleted, but it exists"
# }
module "check_delete_after_deleted" {
source = "../assertion"
# source = "Invicton-Labs/assertion/null"
# version = "0.2.4"
depends_on = [
// This forces a wait until the deletion has been completed as well
module.delete_after
]
condition = !fileexists(module.delete_after.complete ? module.delete_after.filename : "")
error_message = "delete-after (deleted): expected file to be deleted, but it exists"
}
2 changes: 1 addition & 1 deletion tests/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ output "done" {
# module.check_multi_chunk_base64_external.checked,
# module.check_multi_chunk_base64_external_no_change.checked,
module.check_delete_after_exists.checked,
# module.check_delete_after_deleted.checked,
module.check_delete_after_deleted.checked,
]) == 0 ? true : true
}

0 comments on commit fb1e1f7

Please sign in to comment.