mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
470362b051
The CBDEdgeTransformer tests worked on fake data structures, with a synthetic graph, and configs that didn't match. Update them to generate a more complete graph, with real node implementations, from real configs. The output graph is filtered down to instances, and the results still functionally match the original expected test results, with some minor additions due to using the real implementation.
12 lines
202 B
HCL
12 lines
202 B
HCL
resource "test_object" "A" {
|
|
count = 2
|
|
lifecycle {
|
|
create_before_destroy = true
|
|
}
|
|
}
|
|
|
|
resource "test_object" "B" {
|
|
count = 2
|
|
test_string = test_object.A[*].test_string[count.index]
|
|
}
|