From 604c347128505e851ee30b9fc6e1a56e8f027c6a Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 7 May 2018 18:28:10 -0700 Subject: [PATCH] core: Update test fixtures for ProviderTransformer tests Some of these tests were using an outdated form to reference a local directory as a module. While here, I also updated the provider references to the new unquoted form, which is preferred from v0.12 onwards. --- .../transform-provider-grandchild-inherit/child/main.tf | 2 +- .../transform-provider-grandchild-inherit/main.tf | 4 ++-- .../test-fixtures/transform-provider-implicit-module/main.tf | 2 +- .../test-fixtures/transform-provider-inherit/child/main.tf | 2 +- terraform/test-fixtures/transform-provider-inherit/main.tf | 4 ++-- terraform/test-fixtures/transform-provider-invalid/main.tf | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/terraform/test-fixtures/transform-provider-grandchild-inherit/child/main.tf b/terraform/test-fixtures/transform-provider-grandchild-inherit/child/main.tf index 6c1285513..7ec80343d 100644 --- a/terraform/test-fixtures/transform-provider-grandchild-inherit/child/main.tf +++ b/terraform/test-fixtures/transform-provider-grandchild-inherit/child/main.tf @@ -5,6 +5,6 @@ provider "aws" { module "grandchild" { source = "./grandchild" providers = { - "aws.baz" = "aws.bar" + aws.baz = aws.bar } } diff --git a/terraform/test-fixtures/transform-provider-grandchild-inherit/main.tf b/terraform/test-fixtures/transform-provider-grandchild-inherit/main.tf index b9d39e9c7..cb9a2f9de 100644 --- a/terraform/test-fixtures/transform-provider-grandchild-inherit/main.tf +++ b/terraform/test-fixtures/transform-provider-grandchild-inherit/main.tf @@ -4,8 +4,8 @@ provider "aws" { } module "child" { - source = "child" + source = "./child" providers = { - "aws.bar" = "aws.foo" + aws.bar = aws.foo } } diff --git a/terraform/test-fixtures/transform-provider-implicit-module/main.tf b/terraform/test-fixtures/transform-provider-implicit-module/main.tf index 97d73f24d..141a04d3f 100644 --- a/terraform/test-fixtures/transform-provider-implicit-module/main.tf +++ b/terraform/test-fixtures/transform-provider-implicit-module/main.tf @@ -5,6 +5,6 @@ provider "aws" { module "mod" { source = "./mod" providers = { - "aws" = "aws.foo" + aws = aws.foo } } diff --git a/terraform/test-fixtures/transform-provider-inherit/child/main.tf b/terraform/test-fixtures/transform-provider-inherit/child/main.tf index fc598d7fc..b1f070684 100644 --- a/terraform/test-fixtures/transform-provider-inherit/child/main.tf +++ b/terraform/test-fixtures/transform-provider-inherit/child/main.tf @@ -3,5 +3,5 @@ provider "aws" { } resource "aws_instance" "thing" { - provider = "aws.bar" + provider = aws.bar } diff --git a/terraform/test-fixtures/transform-provider-inherit/main.tf b/terraform/test-fixtures/transform-provider-inherit/main.tf index b9d39e9c7..cb9a2f9de 100644 --- a/terraform/test-fixtures/transform-provider-inherit/main.tf +++ b/terraform/test-fixtures/transform-provider-inherit/main.tf @@ -4,8 +4,8 @@ provider "aws" { } module "child" { - source = "child" + source = "./child" providers = { - "aws.bar" = "aws.foo" + aws.bar = aws.foo } } diff --git a/terraform/test-fixtures/transform-provider-invalid/main.tf b/terraform/test-fixtures/transform-provider-invalid/main.tf index 17e6304e0..ec23232ae 100644 --- a/terraform/test-fixtures/transform-provider-invalid/main.tf +++ b/terraform/test-fixtures/transform-provider-invalid/main.tf @@ -6,6 +6,6 @@ module "mod" { # aws.foo doesn't exist, and should report an error providers = { - "aws" = "aws.foo" + aws = aws.foo } }