mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Simplified and reworked tests after the comments from Martin
Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,10 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
count = 2
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
count = 2
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
enabled = false
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
for_each = toset(["a", "b"])
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
for_each = toset(["a", "b"])
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = true
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
removed {
|
||||
from = aws_instance.skip_destroy_not_set
|
||||
|
||||
lifecycle {
|
||||
destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
removed {
|
||||
from = aws_instance.skip_destroy_set
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
removed {
|
||||
from = aws_instance.foo
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
removed {
|
||||
from = aws_instance.foo
|
||||
|
||||
lifecycle {
|
||||
destroy = true
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
resource "aws_instance" "foo" {
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
}
|
||||
3
internal/tofu/testdata/skip-destroy/main.tf
vendored
3
internal/tofu/testdata/skip-destroy/main.tf
vendored
@@ -1,7 +1,4 @@
|
||||
resource "aws_instance" "foo" {
|
||||
id = "baz"
|
||||
require_new = "new"
|
||||
|
||||
lifecycle {
|
||||
destroy = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user