-
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
71a0fc1
commit 112d26b
Showing
13 changed files
with
1,564 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
pkg/pf/tests/testdata/TestDetailedDiffList/attribute_no_replace/long_list_added.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,80 @@ | ||
tfbridgetests.testOutput{ | ||
initialValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
}, | ||
changeValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
"value20", | ||
}, | ||
tfOut: ` | ||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
~ update in-place | ||
|
||
Terraform will perform the following actions: | ||
|
||
# testprovider_test.res will be updated in-place | ||
~ resource "testprovider_test" "res" { | ||
id = "test-id" | ||
~ key = [ | ||
# (19 unchanged elements hidden) | ||
"value19", | ||
+ "value20", | ||
] | ||
} | ||
|
||
Plan: 0 to add, 1 to change, 0 to destroy. | ||
|
||
`, | ||
pulumiOut: `Previewing update (test): | ||
pulumi:pulumi:Stack: (same) | ||
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test] | ||
~ testprovider:index/test:Test: (update) | ||
[id=test-id] | ||
[urn=urn:pulumi:test::project::testprovider:index/test:Test::p] | ||
~ keys: [ | ||
+ [20]: "value20" | ||
] | ||
Resources: | ||
~ 1 to update | ||
1 unchanged | ||
`, | ||
} |
80 changes: 80 additions & 0 deletions
80
pkg/pf/tests/testdata/TestDetailedDiffList/attribute_requires_replace/long_list_added.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,80 @@ | ||
tfbridgetests.testOutput{ | ||
initialValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
}, | ||
changeValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
"value20", | ||
}, | ||
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: | ||
|
||
# testprovider_test.res must be replaced | ||
+/- resource "testprovider_test" "res" { | ||
~ id = "test-id" -> (known after apply) | ||
~ key = [ # forces replacement | ||
# (19 unchanged elements hidden) | ||
"value19", | ||
+ "value20", | ||
] | ||
} | ||
|
||
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] | ||
+-testprovider:index/test:Test: (replace) | ||
[id=test-id] | ||
[urn=urn:pulumi:test::project::testprovider:index/test:Test::p] | ||
~ keys: [ | ||
+ [20]: "value20" | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
} |
100 changes: 100 additions & 0 deletions
100
...sts/testdata/TestDetailedDiffList/attribute_requires_replace/long_list_added_front.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,100 @@ | ||
tfbridgetests.testOutput{ | ||
initialValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
}, | ||
changeValue: &[]string{ | ||
"value20", | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
}, | ||
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: | ||
|
||
# testprovider_test.res must be replaced | ||
+/- resource "testprovider_test" "res" { | ||
~ id = "test-id" -> (known after apply) | ||
~ key = [ # forces replacement | ||
+ "value20", | ||
"value0", | ||
# (19 unchanged elements hidden) | ||
] | ||
} | ||
|
||
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] | ||
+-testprovider:index/test:Test: (replace) | ||
[id=test-id] | ||
[urn=urn:pulumi:test::project::testprovider:index/test:Test::p] | ||
~ keys: [ | ||
~ [0]: "value0" => "value20" | ||
~ [1]: "value1" => "value0" | ||
~ [2]: "value2" => "value1" | ||
~ [3]: "value3" => "value2" | ||
~ [4]: "value4" => "value3" | ||
~ [5]: "value5" => "value4" | ||
~ [6]: "value6" => "value5" | ||
~ [7]: "value7" => "value6" | ||
~ [8]: "value8" => "value7" | ||
~ [9]: "value9" => "value8" | ||
~ [10]: "value10" => "value9" | ||
~ [11]: "value11" => "value10" | ||
~ [12]: "value12" => "value11" | ||
~ [13]: "value13" => "value12" | ||
~ [14]: "value14" => "value13" | ||
~ [15]: "value15" => "value14" | ||
~ [16]: "value16" => "value15" | ||
~ [17]: "value17" => "value16" | ||
~ [18]: "value18" => "value17" | ||
~ [19]: "value19" => "value18" | ||
+ [20]: "value19" | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
} |
83 changes: 83 additions & 0 deletions
83
.../tests/testdata/TestDetailedDiffList/block_nested_requires_replace/long_list_added.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,83 @@ | ||
tfbridgetests.testOutput{ | ||
initialValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
}, | ||
changeValue: &[]string{ | ||
"value0", | ||
"value1", | ||
"value2", | ||
"value3", | ||
"value4", | ||
"value5", | ||
"value6", | ||
"value7", | ||
"value8", | ||
"value9", | ||
"value10", | ||
"value11", | ||
"value12", | ||
"value13", | ||
"value14", | ||
"value15", | ||
"value16", | ||
"value17", | ||
"value18", | ||
"value19", | ||
"value20", | ||
}, | ||
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: | ||
|
||
# testprovider_test.res must be replaced | ||
+/- resource "testprovider_test" "res" { | ||
~ id = "test-id" -> (known after apply) | ||
|
||
+ key { | ||
+ nested = "value20" # forces replacement | ||
} | ||
|
||
# (20 unchanged blocks hidden) | ||
} | ||
|
||
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] | ||
+-testprovider:index/test:Test: (replace) | ||
[id=test-id] | ||
[urn=urn:pulumi:test::project::testprovider:index/test:Test::p] | ||
~ keys: [ | ||
+ [20]: { | ||
+ nested: "value20" | ||
} | ||
] | ||
Resources: | ||
+-1 to replace | ||
1 unchanged | ||
`, | ||
} |
Oops, something went wrong.