Skip to content

Commit

Permalink
Test unchanged root attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit authored and bflad committed Dec 17, 2021
1 parent 9475a53 commit c1c4751
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helper/schema/resource_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1245,14 +1245,21 @@ func TestGetChangedKeysPrefix(t *testing.T) {
Optional: true,
Computed: true,
},
"qux": {
Type: TypeString,
Optional: true,
Computed: true,
},
},
State: &terraform.InstanceState{
Attributes: map[string]string{
"foo": "bar",
"qux": "abc",
},
},
Config: testConfig(t, map[string]interface{}{
"foo": "baz",
"qux": "abc",
}),
Diff: &terraform.InstanceDiff{
Attributes: map[string]*terraform.ResourceAttrDiff{
Expand Down

0 comments on commit c1c4751

Please sign in to comment.