command: "go fmt" of plan_test.go
This commit is contained in:
parent
e54848b86f
commit
5d1d6a95f9
|
@ -384,11 +384,11 @@ func TestPlan_state(t *testing.T) {
|
||||||
// Verify that the provider was called with the existing state
|
// Verify that the provider was called with the existing state
|
||||||
actual := p.PlanResourceChangeRequest.PriorState
|
actual := p.PlanResourceChangeRequest.PriorState
|
||||||
expected := cty.ObjectVal(map[string]cty.Value{
|
expected := cty.ObjectVal(map[string]cty.Value{
|
||||||
"id": cty.StringVal("bar"),
|
"id": cty.StringVal("bar"),
|
||||||
"ami": cty.NullVal(cty.String),
|
"ami": cty.NullVal(cty.String),
|
||||||
"network_interface": cty.NullVal(cty.List(cty.Object(map[string]cty.Type{
|
"network_interface": cty.NullVal(cty.List(cty.Object(map[string]cty.Type{
|
||||||
"device_index": cty.String,
|
"device_index": cty.String,
|
||||||
"description": cty.String,
|
"description": cty.String,
|
||||||
}))),
|
}))),
|
||||||
})
|
})
|
||||||
if !expected.RawEquals(actual) {
|
if !expected.RawEquals(actual) {
|
||||||
|
@ -430,11 +430,11 @@ func TestPlan_stateDefault(t *testing.T) {
|
||||||
// Verify that the provider was called with the existing state
|
// Verify that the provider was called with the existing state
|
||||||
actual := p.PlanResourceChangeRequest.PriorState
|
actual := p.PlanResourceChangeRequest.PriorState
|
||||||
expected := cty.ObjectVal(map[string]cty.Value{
|
expected := cty.ObjectVal(map[string]cty.Value{
|
||||||
"id": cty.StringVal("bar"),
|
"id": cty.StringVal("bar"),
|
||||||
"ami": cty.NullVal(cty.String),
|
"ami": cty.NullVal(cty.String),
|
||||||
"network_interface": cty.NullVal(cty.List(cty.Object(map[string]cty.Type{
|
"network_interface": cty.NullVal(cty.List(cty.Object(map[string]cty.Type{
|
||||||
"device_index": cty.String,
|
"device_index": cty.String,
|
||||||
"description": cty.String,
|
"description": cty.String,
|
||||||
}))),
|
}))),
|
||||||
})
|
})
|
||||||
if !expected.RawEquals(actual) {
|
if !expected.RawEquals(actual) {
|
||||||
|
@ -461,7 +461,7 @@ func TestPlan_validate(t *testing.T) {
|
||||||
ResourceTypes: map[string]*configschema.Block{
|
ResourceTypes: map[string]*configschema.Block{
|
||||||
"test_instance": {
|
"test_instance": {
|
||||||
Attributes: map[string]*configschema.Attribute{
|
Attributes: map[string]*configschema.Attribute{
|
||||||
"id": {Type: cty.String, Optional: true, Computed: true},
|
"id": {Type: cty.String, Optional: true, Computed: true},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue