Skip to content

Commit 3d2f4d3

Browse files
recordings
1 parent 5743b1e commit 3d2f4d3

Some content is hidden

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

50 files changed

+1341
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
tests.testOutput{
2+
initialValue: &[]string{},
3+
changeValue: &[]string{"value"},
4+
tfOut: `
5+
Terraform used the selected providers to generate the following execution
6+
plan. Resource actions are indicated with the following symbols:
7+
~ update in-place
8+
9+
Terraform will perform the following actions:
10+
11+
# crossprovider_test_res.example will be updated in-place
12+
~ resource "crossprovider_test_res" "example" {
13+
id = "newid"
14+
+ prop = [
15+
+ "value",
16+
]
17+
}
18+
19+
Plan: 0 to add, 1 to change, 0 to destroy.
20+
21+
`,
22+
pulumiOut: `Previewing update (test):
23+
pulumi:pulumi:Stack: (same)
24+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
25+
~ crossprovider:index/testRes:TestRes: (update)
26+
[id=newid]
27+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
28+
+ prop: "value"
29+
Resources:
30+
~ 1 to update
31+
1 unchanged
32+
`,
33+
detailedDiff: map[string]interface{}{"prop": map[string]interface{}{}},
34+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
tests.testOutput{
2+
initialValue: &[]string{},
3+
changeValue: nil,
4+
tfOut: `
5+
No changes. Your infrastructure matches the configuration.
6+
7+
Terraform has compared your real infrastructure against your configuration
8+
and found no differences, so no changes are needed.
9+
`,
10+
pulumiOut: `Previewing update (test):
11+
pulumi:pulumi:Stack: (same)
12+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
13+
Resources:
14+
2 unchanged
15+
`,
16+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"value",
4+
},
5+
changeValue: &[]string{"value1"},
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+
~ prop = [
17+
- "value",
18+
+ "value1",
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+
~ prop: "value" => "value1"
32+
Resources:
33+
~ 1 to update
34+
1 unchanged
35+
`,
36+
detailedDiff: map[string]interface{}{"prop": map[string]interface{}{"kind": "UPDATE"}},
37+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"value",
4+
},
5+
changeValue: nil,
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+
~ prop = [
17+
- "value",
18+
]
19+
}
20+
21+
Plan: 0 to add, 1 to change, 0 to destroy.
22+
23+
`,
24+
pulumiOut: `Previewing update (test):
25+
pulumi:pulumi:Stack: (same)
26+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
27+
~ crossprovider:index/testRes:TestRes: (update)
28+
[id=newid]
29+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
30+
- prop: "value"
31+
Resources:
32+
~ 1 to update
33+
1 unchanged
34+
`,
35+
detailedDiff: map[string]interface{}{"prop": map[string]interface{}{"kind": "DELETE"}},
36+
}
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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
tests.testOutput{
2+
initialValue: nil, changeValue: &[]string{
3+
"value",
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+
+ prop = [
16+
+ "value",
17+
]
18+
}
19+
20+
Plan: 0 to add, 1 to change, 0 to destroy.
21+
22+
`,
23+
pulumiOut: `Previewing update (test):
24+
pulumi:pulumi:Stack: (same)
25+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
26+
~ crossprovider:index/testRes:TestRes: (update)
27+
[id=newid]
28+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
29+
+ prop: "value"
30+
Resources:
31+
~ 1 to update
32+
1 unchanged
33+
`,
34+
detailedDiff: map[string]interface{}{"prop": map[string]interface{}{}},
35+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"value",
4+
},
5+
changeValue: &[]string{},
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+
~ prop = [
17+
- "value",
18+
]
19+
}
20+
21+
Plan: 0 to add, 1 to change, 0 to destroy.
22+
23+
`,
24+
pulumiOut: `Previewing update (test):
25+
pulumi:pulumi:Stack: (same)
26+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
27+
~ crossprovider:index/testRes:TestRes: (update)
28+
[id=newid]
29+
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
30+
- prop: "value"
31+
Resources:
32+
~ 1 to update
33+
1 unchanged
34+
`,
35+
detailedDiff: map[string]interface{}{"prop": map[string]interface{}{"kind": "DELETE"}},
36+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
tests.testOutput{
2+
initialValue: &[]string{},
3+
changeValue: &[]string{},
4+
tfOut: `
5+
No changes. Your infrastructure matches the configuration.
6+
7+
Terraform has compared your real infrastructure against your configuration
8+
and found no differences, so no changes are needed.
9+
`,
10+
pulumiOut: `Previewing update (test):
11+
pulumi:pulumi:Stack: (same)
12+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
13+
Resources:
14+
2 unchanged
15+
`,
16+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
tests.testOutput{
2+
initialValue: &[]string{
3+
"value",
4+
},
5+
changeValue: &[]string{"value"},
6+
tfOut: `
7+
No changes. Your infrastructure matches the configuration.
8+
9+
Terraform has compared your real infrastructure against your configuration
10+
and found no differences, so no changes are needed.
11+
`,
12+
pulumiOut: `Previewing update (test):
13+
pulumi:pulumi:Stack: (same)
14+
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
15+
Resources:
16+
2 unchanged
17+
`,
18+
}
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: nil,
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+
}

0 commit comments

Comments
 (0)