|
|
|
|
@ -1919,9 +1919,7 @@ func TestResourceDataState(t *testing.T) {
|
|
|
|
|
Partial: []string{},
|
|
|
|
|
|
|
|
|
|
Result: &terraform.InstanceState{
|
|
|
|
|
Attributes: map[string]string{
|
|
|
|
|
"availability_zone": "",
|
|
|
|
|
},
|
|
|
|
|
Attributes: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -1994,9 +1992,7 @@ func TestResourceDataState(t *testing.T) {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Result: &terraform.InstanceState{
|
|
|
|
|
Attributes: map[string]string{
|
|
|
|
|
"ports.#": "0",
|
|
|
|
|
},
|
|
|
|
|
Attributes: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -2176,9 +2172,7 @@ func TestResourceDataState(t *testing.T) {
|
|
|
|
|
Partial: []string{},
|
|
|
|
|
|
|
|
|
|
Result: &terraform.InstanceState{
|
|
|
|
|
Attributes: map[string]string{
|
|
|
|
|
"ports.#": "0",
|
|
|
|
|
},
|
|
|
|
|
Attributes: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -2239,6 +2233,31 @@ func TestResourceDataState(t *testing.T) {
|
|
|
|
|
Attributes: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// #21
|
|
|
|
|
{
|
|
|
|
|
Schema: map[string]*Schema{
|
|
|
|
|
"foo": &Schema{
|
|
|
|
|
Type: TypeString,
|
|
|
|
|
Optional: true,
|
|
|
|
|
Computed: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
State: nil,
|
|
|
|
|
|
|
|
|
|
Diff: &terraform.InstanceDiff{
|
|
|
|
|
Attributes: map[string]*terraform.ResourceAttrDiff{
|
|
|
|
|
"foo": &terraform.ResourceAttrDiff{
|
|
|
|
|
NewComputed: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Result: &terraform.InstanceState{
|
|
|
|
|
Attributes: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for i, tc := range cases {
|
|
|
|
|
|