remove unused DependsOn usage in state
This commit is contained in:
parent
c052463f62
commit
756e889697
|
@ -265,7 +265,6 @@ func testState() *states.State {
|
||||||
AttrsJSON: []byte("{\n \"id\": \"bar\"\n }"),
|
AttrsJSON: []byte("{\n \"id\": \"bar\"\n }"),
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
},
|
},
|
||||||
addrs.AbsProviderConfig{
|
addrs.AbsProviderConfig{
|
||||||
Provider: addrs.NewDefaultProvider("test"),
|
Provider: addrs.NewDefaultProvider("test"),
|
||||||
|
|
|
@ -278,7 +278,6 @@ func TestRefresh_defaultState(t *testing.T) {
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(actual, expected) {
|
if !reflect.DeepEqual(actual, expected) {
|
||||||
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
||||||
|
@ -343,7 +342,6 @@ func TestRefresh_outPath(t *testing.T) {
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(actual, expected) {
|
if !reflect.DeepEqual(actual, expected) {
|
||||||
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
||||||
|
@ -573,7 +571,6 @@ func TestRefresh_backup(t *testing.T) {
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"changed\"\n }"),
|
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"changed\"\n }"),
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(actual, expected) {
|
if !reflect.DeepEqual(actual, expected) {
|
||||||
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
||||||
|
@ -640,7 +637,6 @@ func TestRefresh_disableBackup(t *testing.T) {
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
AttrsJSON: []byte("{\n \"ami\": null,\n \"id\": \"yes\"\n }"),
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(actual, expected) {
|
if !reflect.DeepEqual(actual, expected) {
|
||||||
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected))
|
||||||
|
|
|
@ -83,7 +83,6 @@ func TestShow_aliasedProvider(t *testing.T) {
|
||||||
AttrsJSON: []byte("{\n \"id\": \"bar\"\n }"),
|
AttrsJSON: []byte("{\n \"id\": \"bar\"\n }"),
|
||||||
Status: states.ObjectReady,
|
Status: states.ObjectReady,
|
||||||
Dependencies: []addrs.ConfigResource{},
|
Dependencies: []addrs.ConfigResource{},
|
||||||
DependsOn: []addrs.Referenceable{},
|
|
||||||
},
|
},
|
||||||
addrs.RootModuleInstance.ProviderConfigAliased(addrs.NewDefaultProvider("test"), "alias"),
|
addrs.RootModuleInstance.ProviderConfigAliased(addrs.NewDefaultProvider("test"), "alias"),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue