Skip to content

Commit 1dcbb01

Browse files
recordings
1 parent 7be7819 commit 1dcbb01

File tree

116 files changed

+6342
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+6342
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
tests.testOutput{
2+
initialValue: nil, changeValue: &[]string{},
3+
tfOut: `
4+
No changes. Your infrastructure matches the configuration.
5+
6+
Terraform has compared your real infrastructure against your configuration
7+
and found no differences, so no changes are needed.
8+
`,
9+
pulumiOut: `Previewing update (test):
10+
pulumi:pulumi:Stack: (same)
11+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
12+
Resources:
13+
2 unchanged
14+
`,
15+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
tests.testOutput{
2+
initialValue: nil, changeValue: &[]string{
3+
"val1",
4+
},
5+
tfOut: `
6+
Terraform used the selected providers to generate the following execution
7+
plan. Resource actions are indicated with the following symbols:
8+
~ update in-place
9+
10+
Terraform will perform the following actions:
11+
12+
# crossprovider_test_res.example will be updated in-place
13+
~ resource "crossprovider_test_res" "example" {
14+
id = "newid"
15+
16+
+ prop {
17+
+ default = "default"
18+
+ nested_prop = "val1"
19+
}
20+
}
21+
22+
Plan: 0 to add, 1 to change, 0 to destroy.
23+
24+
`,
25+
pulumiOut: `Previewing update (test):
26+
pulumi:pulumi:Stack: (same)
27+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
28+
~ crossprovider:index/testRes:TestRes: (update)
29+
[id=newid]
30+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
31+
+ props: [
32+
+ [0]: {
33+
+ default : "default"
34+
+ nestedProp: "val1"
35+
}
36+
]
37+
Resources:
38+
~ 1 to update
39+
1 unchanged
40+
`,
41+
detailedDiff: map[string]interface{}{"props": map[string]interface{}{}},
42+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val1",
4+
},
5+
changeValue: &[]string{"val2"},
6+
tfOut: `
7+
Terraform used the selected providers to generate the following execution
8+
plan. Resource actions are indicated with the following symbols:
9+
~ update in-place
10+
11+
Terraform will perform the following actions:
12+
13+
# crossprovider_test_res.example will be updated in-place
14+
~ resource "crossprovider_test_res" "example" {
15+
id = "newid"
16+
17+
~ prop {
18+
~ nested_prop = "val1" -> "val2"
19+
# (1 unchanged attribute hidden)
20+
}
21+
}
22+
23+
Plan: 0 to add, 1 to change, 0 to destroy.
24+
25+
`,
26+
pulumiOut: `Previewing update (test):
27+
pulumi:pulumi:Stack: (same)
28+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
29+
~ crossprovider:index/testRes:TestRes: (update)
30+
[id=newid]
31+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
32+
~ props: [
33+
~ [0]: {
34+
~ nestedProp: "val1" => "val2"
35+
}
36+
]
37+
Resources:
38+
~ 1 to update
39+
1 unchanged
40+
`,
41+
detailedDiff: map[string]interface{}{"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"}},
42+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val1",
4+
"val2",
5+
},
6+
changeValue: &[]string{
7+
"val1",
8+
"val2",
9+
"val3",
10+
},
11+
tfOut: `
12+
Terraform used the selected providers to generate the following execution
13+
plan. Resource actions are indicated with the following symbols:
14+
~ update in-place
15+
16+
Terraform will perform the following actions:
17+
18+
# crossprovider_test_res.example will be updated in-place
19+
~ resource "crossprovider_test_res" "example" {
20+
id = "newid"
21+
22+
+ prop {
23+
+ default = "default"
24+
+ nested_prop = "val3"
25+
}
26+
27+
# (2 unchanged blocks hidden)
28+
}
29+
30+
Plan: 0 to add, 1 to change, 0 to destroy.
31+
32+
`,
33+
pulumiOut: `Previewing update (test):
34+
pulumi:pulumi:Stack: (same)
35+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
36+
~ crossprovider:index/testRes:TestRes: (update)
37+
[id=newid]
38+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
39+
~ props: [
40+
+ [2]: {
41+
+ default : "default"
42+
+ nestedProp: "val3"
43+
}
44+
]
45+
Resources:
46+
~ 1 to update
47+
1 unchanged
48+
`,
49+
detailedDiff: map[string]interface{}{"props[2]": map[string]interface{}{}},
50+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val2",
4+
"val3",
5+
},
6+
changeValue: &[]string{
7+
"val1",
8+
"val2",
9+
"val3",
10+
},
11+
tfOut: `
12+
Terraform used the selected providers to generate the following execution
13+
plan. Resource actions are indicated with the following symbols:
14+
~ update in-place
15+
16+
Terraform will perform the following actions:
17+
18+
# crossprovider_test_res.example will be updated in-place
19+
~ resource "crossprovider_test_res" "example" {
20+
id = "newid"
21+
22+
~ prop {
23+
~ nested_prop = "val2" -> "val1"
24+
# (1 unchanged attribute hidden)
25+
}
26+
~ prop {
27+
~ nested_prop = "val3" -> "val2"
28+
# (1 unchanged attribute hidden)
29+
}
30+
+ prop {
31+
+ default = "default"
32+
+ nested_prop = "val3"
33+
}
34+
}
35+
36+
Plan: 0 to add, 1 to change, 0 to destroy.
37+
38+
`,
39+
pulumiOut: `Previewing update (test):
40+
pulumi:pulumi:Stack: (same)
41+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
42+
~ crossprovider:index/testRes:TestRes: (update)
43+
[id=newid]
44+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
45+
~ props: [
46+
~ [0]: {
47+
~ nestedProp: "val2" => "val1"
48+
}
49+
~ [1]: {
50+
~ nestedProp: "val3" => "val2"
51+
}
52+
+ [2]: {
53+
+ default : "default"
54+
+ nestedProp: "val3"
55+
}
56+
]
57+
Resources:
58+
~ 1 to update
59+
1 unchanged
60+
`,
61+
detailedDiff: map[string]interface{}{
62+
"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"},
63+
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
64+
"props[2]": map[string]interface{}{},
65+
},
66+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val1",
4+
"val3",
5+
},
6+
changeValue: &[]string{
7+
"val1",
8+
"val2",
9+
"val3",
10+
},
11+
tfOut: `
12+
Terraform used the selected providers to generate the following execution
13+
plan. Resource actions are indicated with the following symbols:
14+
~ update in-place
15+
16+
Terraform will perform the following actions:
17+
18+
# crossprovider_test_res.example will be updated in-place
19+
~ resource "crossprovider_test_res" "example" {
20+
id = "newid"
21+
22+
~ prop {
23+
~ nested_prop = "val3" -> "val2"
24+
# (1 unchanged attribute hidden)
25+
}
26+
+ prop {
27+
+ default = "default"
28+
+ nested_prop = "val3"
29+
}
30+
31+
# (1 unchanged block hidden)
32+
}
33+
34+
Plan: 0 to add, 1 to change, 0 to destroy.
35+
36+
`,
37+
pulumiOut: `Previewing update (test):
38+
pulumi:pulumi:Stack: (same)
39+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
40+
~ crossprovider:index/testRes:TestRes: (update)
41+
[id=newid]
42+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
43+
~ props: [
44+
~ [1]: {
45+
~ nestedProp: "val3" => "val2"
46+
}
47+
+ [2]: {
48+
+ default : "default"
49+
+ nestedProp: "val3"
50+
}
51+
]
52+
Resources:
53+
~ 1 to update
54+
1 unchanged
55+
`,
56+
detailedDiff: map[string]interface{}{
57+
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
58+
"props[2]": map[string]interface{}{},
59+
},
60+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val1",
4+
"val2",
5+
"val3",
6+
},
7+
changeValue: &[]string{
8+
"val1",
9+
"val2",
10+
},
11+
tfOut: `
12+
Terraform used the selected providers to generate the following execution
13+
plan. Resource actions are indicated with the following symbols:
14+
~ update in-place
15+
16+
Terraform will perform the following actions:
17+
18+
# crossprovider_test_res.example will be updated in-place
19+
~ resource "crossprovider_test_res" "example" {
20+
id = "newid"
21+
22+
- prop {
23+
- default = "default" -> null
24+
- nested_prop = "val3" -> null
25+
}
26+
27+
# (2 unchanged blocks hidden)
28+
}
29+
30+
Plan: 0 to add, 1 to change, 0 to destroy.
31+
32+
`,
33+
pulumiOut: `Previewing update (test):
34+
pulumi:pulumi:Stack: (same)
35+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
36+
~ crossprovider:index/testRes:TestRes: (update)
37+
[id=newid]
38+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
39+
~ props: [
40+
- [2]: {
41+
- default : "default"
42+
- nestedProp: "val3"
43+
}
44+
]
45+
Resources:
46+
~ 1 to update
47+
1 unchanged
48+
`,
49+
detailedDiff: map[string]interface{}{"props[2]": map[string]interface{}{"kind": "DELETE"}},
50+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"val1",
4+
"val2",
5+
"val3",
6+
},
7+
changeValue: &[]string{
8+
"val2",
9+
"val3",
10+
},
11+
tfOut: `
12+
Terraform used the selected providers to generate the following execution
13+
plan. Resource actions are indicated with the following symbols:
14+
~ update in-place
15+
16+
Terraform will perform the following actions:
17+
18+
# crossprovider_test_res.example will be updated in-place
19+
~ resource "crossprovider_test_res" "example" {
20+
id = "newid"
21+
22+
~ prop {
23+
~ nested_prop = "val1" -> "val2"
24+
# (1 unchanged attribute hidden)
25+
}
26+
~ prop {
27+
~ nested_prop = "val2" -> "val3"
28+
# (1 unchanged attribute hidden)
29+
}
30+
- prop {
31+
- default = "default" -> null
32+
- nested_prop = "val3" -> null
33+
}
34+
}
35+
36+
Plan: 0 to add, 1 to change, 0 to destroy.
37+
38+
`,
39+
pulumiOut: `Previewing update (test):
40+
pulumi:pulumi:Stack: (same)
41+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
42+
~ crossprovider:index/testRes:TestRes: (update)
43+
[id=newid]
44+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
45+
~ props: [
46+
~ [0]: {
47+
~ nestedProp: "val1" => "val2"
48+
}
49+
~ [1]: {
50+
~ nestedProp: "val2" => "val3"
51+
}
52+
- [2]: {
53+
- default : "default"
54+
- nestedProp: "val3"
55+
}
56+
]
57+
Resources:
58+
~ 1 to update
59+
1 unchanged
60+
`,
61+
detailedDiff: map[string]interface{}{
62+
"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"},
63+
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
64+
"props[2]": map[string]interface{}{"kind": "DELETE"},
65+
},
66+
}

0 commit comments

Comments
 (0)