Adding a test for issue #791

Running this test on commit 47f02f80bc
from 6 days ago, is successful, but on master it now fails.
This commit is contained in:
Sander van Harmelen 2015-01-14 20:50:58 +01:00
parent 7062b2b952
commit cb37e10c6f
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{