change import module inheritance test

Importing into a module requires a provider config. Update the
inheritance test to reflect the new import restrictions.
pull/16480/head
James Bardin 9 years ago
parent b0163e69d1
commit 402f321abe

@ -226,12 +226,10 @@ func TestContextImport_moduleProvider(t *testing.T) {
}
}
// Test that import sets up the graph properly for provider inheritance
// FIXME: import must declare a provider in an empty config. Should that go
// back to being automatically inherited?
func TestContextImport_providerInherit(t *testing.T) {
// Importing into a module requires a provider config in that module.
func TestContextImport_providerModule(t *testing.T) {
p := testProvider("aws")
m := testModule(t, "import-provider-inherit")
m := testModule(t, "import-provider-module")
ctx := testContext2(t, &ContextOpts{
Module: m,
ProviderResolver: ResourceProviderResolverFixed(

Loading…
Cancel
Save