Skip to content

Commit

Permalink
wip failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
phinze committed Jun 16, 2016
1 parent f65a898 commit da99833
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions terraform/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,39 @@ func TestInstanceDiffSame(t *testing.T) {
true,
"",
},

// Same as above -/+ but for Maps using the new % notation
{
&InstanceDiff{
Attributes: map[string]*ResourceAttrDiff{
"reqnew": &ResourceAttrDiff{
Old: "old",
New: "new",
RequiresNew: true,
},
"somemap.%": &ResourceAttrDiff{
Old: "1",
New: "0",
},
"somemap.oldkey": &ResourceAttrDiff{
Old: "long ago",
New: "",
NewRemoved: true,
},
},
},
&InstanceDiff{
Attributes: map[string]*ResourceAttrDiff{
"reqnew": &ResourceAttrDiff{
Old: "",
New: "new",
RequiresNew: true,
},
},
},
true,
"",
},
}

for i, tc := range cases {
Expand Down

0 comments on commit da99833

Please sign in to comment.