Skip to content

Commit

Permalink
re-record tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Nov 21, 2024
1 parent 71a0fc1 commit 112d26b
Show file tree
Hide file tree
Showing 13 changed files with 1,564 additions and 0 deletions.
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
`,
}
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
`,
}
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
`,
}
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
`,
}
Loading

0 comments on commit 112d26b

Please sign in to comment.