-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebc04e2
commit 8e6731f
Showing
58 changed files
with
4,108 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
.../TestDetailedDiffSet/block_with_computed_and_nested_force_new/same_element_updated.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
tests.testOutput{ | ||
initialValue: &[]string{ | ||
"val1", | ||
"val2", | ||
"val3", | ||
}, | ||
changeValue: &[]string{ | ||
"val1", | ||
"val4", | ||
"val3", | ||
}, | ||
tfOut: ` | ||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+/- create replacement and then destroy | ||
|
||
Terraform will perform the following actions: | ||
|
||
# crossprovider_test_res.example must be replaced | ||
+/- resource "crossprovider_test_res" "example" { | ||
~ id = "id" -> (known after apply) | ||
|
||
- test { # forces replacement | ||
- nested = "val1" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val2" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val3" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val1" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val3" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val4" | ||
} | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 1 to destroy. | ||
|
||
`, | ||
pulumiOut: `Previewing update (test): | ||
pulumi:pulumi:Stack: (same) | ||
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test] | ||
+-crossprovider:index/testRes:TestRes: (replace) | ||
[id=id] | ||
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example] | ||
~ tests: [ | ||
~ [0]: { | ||
} | ||
~ [1]: { | ||
~ nested : "val2" => "val4" | ||
} | ||
~ [2]: { | ||
~ nested : "val3" => "val3" | ||
} | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
detailedDiff: map[string]interface{}{ | ||
"tests[0].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[1].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[1].nested": map[string]interface{}{"kind": "UPDATE_REPLACE"}, | ||
"tests[2].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[2].nested": map[string]interface{}{"kind": "UPDATE_REPLACE"}, | ||
}, | ||
} |
77 changes: 77 additions & 0 deletions
77
...ledDiffSet/block_with_computed_and_nested_force_new/same_element_updated_unordered.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
tests.testOutput{ | ||
initialValue: &[]string{ | ||
"val2", | ||
"val3", | ||
"val1", | ||
}, | ||
changeValue: &[]string{ | ||
"val2", | ||
"val4", | ||
"val1", | ||
}, | ||
tfOut: ` | ||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+/- create replacement and then destroy | ||
|
||
Terraform will perform the following actions: | ||
|
||
# crossprovider_test_res.example must be replaced | ||
+/- resource "crossprovider_test_res" "example" { | ||
~ id = "id" -> (known after apply) | ||
|
||
- test { # forces replacement | ||
- nested = "val1" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val2" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val3" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val1" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val2" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val4" | ||
} | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 1 to destroy. | ||
|
||
`, | ||
pulumiOut: `Previewing update (test): | ||
pulumi:pulumi:Stack: (same) | ||
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test] | ||
+-crossprovider:index/testRes:TestRes: (replace) | ||
[id=id] | ||
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example] | ||
~ tests: [ | ||
~ [0]: { | ||
} | ||
~ [1]: { | ||
} | ||
~ [2]: { | ||
~ nested : "val3" => "val1" | ||
} | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
detailedDiff: map[string]interface{}{ | ||
"tests[0].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[1].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[2].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[2].nested": map[string]interface{}{"kind": "UPDATE_REPLACE"}, | ||
}, | ||
} |
92 changes: 92 additions & 0 deletions
92
...DetailedDiffSet/block_with_computed_and_nested_force_new/two_added_and_two_removed.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
tests.testOutput{ | ||
initialValue: &[]string{ | ||
"val1", | ||
"val2", | ||
"val3", | ||
"val4", | ||
}, | ||
changeValue: &[]string{ | ||
"val1", | ||
"val2", | ||
"val5", | ||
"val6", | ||
}, | ||
tfOut: ` | ||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+/- create replacement and then destroy | ||
|
||
Terraform will perform the following actions: | ||
|
||
# crossprovider_test_res.example must be replaced | ||
+/- resource "crossprovider_test_res" "example" { | ||
~ id = "id" -> (known after apply) | ||
|
||
- test { # forces replacement | ||
- nested = "val1" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val2" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val3" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
- test { # forces replacement | ||
- nested = "val4" -> null | ||
# (1 unchanged attribute hidden) | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val1" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val2" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val5" | ||
} | ||
+ test { # forces replacement | ||
+ computed = (known after apply) | ||
+ nested = "val6" | ||
} | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 1 to destroy. | ||
|
||
`, | ||
pulumiOut: `Previewing update (test): | ||
pulumi:pulumi:Stack: (same) | ||
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test] | ||
+-crossprovider:index/testRes:TestRes: (replace) | ||
[id=id] | ||
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example] | ||
~ tests: [ | ||
~ [0]: { | ||
} | ||
~ [1]: { | ||
} | ||
~ [2]: { | ||
~ nested : "val3" => "val5" | ||
} | ||
~ [3]: { | ||
~ nested : "val4" => "val6" | ||
} | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
detailedDiff: map[string]interface{}{ | ||
"tests[0].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[1].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[2].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[2].nested": map[string]interface{}{"kind": "UPDATE_REPLACE"}, | ||
"tests[3].computed": map[string]interface{}{"kind": "UPDATE"}, | ||
"tests[3].nested": map[string]interface{}{"kind": "UPDATE_REPLACE"}, | ||
}, | ||
} |
Oops, something went wrong.