From 341ec39174a74cdb956a2b33d9d853cd2e7c5bb3 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 2 Nov 2017 11:21:07 -0400 Subject: [PATCH] udpate more tests to remove intermediate providers The new missing provider transformer doesn't add these nay longer --- terraform/transform_provider_test.go | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/terraform/transform_provider_test.go b/terraform/transform_provider_test.go index 1e5e0f82e..f98ccc0ea 100644 --- a/terraform/transform_provider_test.go +++ b/terraform/transform_provider_test.go @@ -478,49 +478,41 @@ provider.foo (close) const testTransformMissingGrandchildProviderStr = ` module.sub.module.subsub.bar_instance.two module.sub.module.subsub.provider.bar - provider.bar module.sub.module.subsub.foo_instance.one module.sub.module.subsub.provider.foo - provider.foo module.sub.module.subsub.provider.bar - provider.bar + provider.bar (disabled) module.sub.module.subsub.provider.foo - provider.foo + provider.foo (disabled) module.sub.provider.foo (disabled) - provider.foo -provider.bar -provider.foo + provider.foo (disabled) +provider.bar (disabled) +provider.foo (disabled) ` const testTransformMissingProviderModuleChildStr = ` module.moo.foo_instance.qux (import id: bar) -module.moo.provider.foo provider.foo ` const testTransformMissingProviderModuleGrandchildStr = ` module.a.module.b.foo_instance.qux (import id: bar) -module.a.module.b.provider.foo -module.a.provider.foo provider.foo ` const testTransformParentProviderStr = ` module.moo.foo_instance.qux (import id: bar) - provider.foo provider.foo ` const testTransformParentProviderModuleGrandchildStr = ` module.a.module.b.foo_instance.qux (import id: bar) - provider.foo provider.foo ` const testTransformProviderModuleChildStr = ` module.moo.foo_instance.qux (import id: bar) - module.moo.provider.foo -module.moo.provider.foo + provider.foo provider.foo `