From 522a28ab953ef4ce469b55c82df5b39e9ffc5ff8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Jan 2017 19:40:46 -0800 Subject: [PATCH] terraform: convert root transform test to use new config transform --- terraform/transform_root_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/terraform/transform_root_test.go b/terraform/transform_root_test.go index 1cfec3995f..9f231906ba 100644 --- a/terraform/transform_root_test.go +++ b/terraform/transform_root_test.go @@ -10,12 +10,21 @@ func TestRootTransformer(t *testing.T) { g := Graph{Path: RootModulePath} { - tf := &ConfigTransformerOld{Module: mod} + tf := &ConfigTransformer{Module: mod} if err := tf.Transform(&g); err != nil { t.Fatalf("err: %s", err) } } + { + transform := &MissingProviderTransformer{ + Providers: []string{"aws", "do"}, + } + if err := transform.Transform(&g); err != nil { + t.Fatalf("err: %s", err) + } + } + { transform := &ProviderTransformer{} if err := transform.Transform(&g); err != nil {