Skip to content

Commit

Permalink
recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Jan 17, 2025
1 parent 9ac1f10 commit 5ab203a
Show file tree
Hide file tree
Showing 116 changed files with 6,342 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
tests.testOutput{
initialValue: nil, changeValue: &[]string{},
tfOut: `
No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
`,
pulumiOut: `Previewing update (test):
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:test::project::pulumi:pulumi:Stack::project-test]
Resources:
2 unchanged
`,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
tests.testOutput{
initialValue: nil, changeValue: &[]string{
"val1",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

+ prop {
+ default = "default"
+ nested_prop = "val1"
}
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
+ props: [
+ [0]: {
+ default : "default"
+ nestedProp: "val1"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{"props": map[string]interface{}{}},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
tests.testOutput{
initialValue: &[]string{
"val1",
},
changeValue: &[]string{"val2"},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

~ prop {
~ nested_prop = "val1" -> "val2"
# (1 unchanged attribute hidden)
}
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
~ [0]: {
~ nestedProp: "val1" => "val2"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"}},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
tests.testOutput{
initialValue: &[]string{
"val1",
"val2",
},
changeValue: &[]string{
"val1",
"val2",
"val3",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

+ prop {
+ default = "default"
+ nested_prop = "val3"
}

# (2 unchanged blocks hidden)
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
+ [2]: {
+ default : "default"
+ nestedProp: "val3"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{"props[2]": map[string]interface{}{}},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
tests.testOutput{
initialValue: &[]string{
"val2",
"val3",
},
changeValue: &[]string{
"val1",
"val2",
"val3",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

~ prop {
~ nested_prop = "val2" -> "val1"
# (1 unchanged attribute hidden)
}
~ prop {
~ nested_prop = "val3" -> "val2"
# (1 unchanged attribute hidden)
}
+ prop {
+ default = "default"
+ nested_prop = "val3"
}
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
~ [0]: {
~ nestedProp: "val2" => "val1"
}
~ [1]: {
~ nestedProp: "val3" => "val2"
}
+ [2]: {
+ default : "default"
+ nestedProp: "val3"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{
"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"},
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
"props[2]": map[string]interface{}{},
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
tests.testOutput{
initialValue: &[]string{
"val1",
"val3",
},
changeValue: &[]string{
"val1",
"val2",
"val3",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

~ prop {
~ nested_prop = "val3" -> "val2"
# (1 unchanged attribute hidden)
}
+ prop {
+ default = "default"
+ nested_prop = "val3"
}

# (1 unchanged block hidden)
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
~ [1]: {
~ nestedProp: "val3" => "val2"
}
+ [2]: {
+ default : "default"
+ nestedProp: "val3"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
"props[2]": map[string]interface{}{},
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
tests.testOutput{
initialValue: &[]string{
"val1",
"val2",
"val3",
},
changeValue: &[]string{
"val1",
"val2",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

- prop {
- default = "default" -> null
- nested_prop = "val3" -> null
}

# (2 unchanged blocks hidden)
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
- [2]: {
- default : "default"
- nestedProp: "val3"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{"props[2]": map[string]interface{}{"kind": "DELETE"}},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
tests.testOutput{
initialValue: &[]string{
"val1",
"val2",
"val3",
},
changeValue: &[]string{
"val2",
"val3",
},
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:

# crossprovider_test_res.example will be updated in-place
~ resource "crossprovider_test_res" "example" {
id = "newid"

~ prop {
~ nested_prop = "val1" -> "val2"
# (1 unchanged attribute hidden)
}
~ prop {
~ nested_prop = "val2" -> "val3"
# (1 unchanged attribute hidden)
}
- prop {
- default = "default" -> null
- nested_prop = "val3" -> null
}
}

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]
~ crossprovider:index/testRes:TestRes: (update)
[id=newid]
[urn=urn:pulumi:test::project::crossprovider:index/testRes:TestRes::example]
~ props: [
~ [0]: {
~ nestedProp: "val1" => "val2"
}
~ [1]: {
~ nestedProp: "val2" => "val3"
}
- [2]: {
- default : "default"
- nestedProp: "val3"
}
]
Resources:
~ 1 to update
1 unchanged
`,
detailedDiff: map[string]interface{}{
"props[0].nestedProp": map[string]interface{}{"kind": "UPDATE"},
"props[1].nestedProp": map[string]interface{}{"kind": "UPDATE"},
"props[2]": map[string]interface{}{"kind": "DELETE"},
},
}
Loading

0 comments on commit 5ab203a

Please sign in to comment.