terraform: convert root transform test to use new config transform

This commit is contained in:
Mitchell Hashimoto 2017-01-26 19:40:46 -08:00
parent 83e093a73e
commit 522a28ab95
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 10 additions and 1 deletions

View File

@ -10,12 +10,21 @@ func TestRootTransformer(t *testing.T) {
g := Graph{Path: RootModulePath} g := Graph{Path: RootModulePath}
{ {
tf := &ConfigTransformerOld{Module: mod} tf := &ConfigTransformer{Module: mod}
if err := tf.Transform(&g); err != nil { if err := tf.Transform(&g); err != nil {
t.Fatalf("err: %s", err) 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{} transform := &ProviderTransformer{}
if err := transform.Transform(&g); err != nil { if err := transform.Transform(&g); err != nil {