diff --git a/tests/delete-after.tf b/tests/delete-after.tf index 3586b26..8a10cc2 100644 --- a/tests/delete-after.tf +++ b/tests/delete-after.tf @@ -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" +} diff --git a/tests/outputs.tf b/tests/outputs.tf index fb2fb34..16216c1 100644 --- a/tests/outputs.tf +++ b/tests/outputs.tf @@ -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 }