Merge pull request #796 from svanharmelen/f-test-issue-791

Adding a test for issue #791
This commit is contained in:
Mitchell Hashimoto 2015-01-14 15:31:28 -08:00
commit 05de36b4ea
1 changed files with 27 additions and 0 deletions

View File

@ -758,6 +758,33 @@ func TestResourceDataGetOk(t *testing.T) {
Ok: true,
},
{
Schema: map[string]*Schema{
"availability_zone": &Schema{
Type: TypeString,
Optional: true,
Computed: true,
ForceNew: true,
},
},
State: nil,
Diff: &terraform.InstanceDiff{
Attributes: map[string]*terraform.ResourceAttrDiff{
"availability_zone": &terraform.ResourceAttrDiff{
Old: "",
New: "",
NewComputed: true,
},
},
},
Key: "availability_zone",
Value: "",
Ok: false,
},
{
Schema: map[string]*Schema{
"availability_zone": &Schema{