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.
This commit is contained in:
parent
37dfda93ce
commit
604c347128
|
@ -5,6 +5,6 @@ provider "aws" {
|
||||||
module "grandchild" {
|
module "grandchild" {
|
||||||
source = "./grandchild"
|
source = "./grandchild"
|
||||||
providers = {
|
providers = {
|
||||||
"aws.baz" = "aws.bar"
|
aws.baz = aws.bar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ provider "aws" {
|
||||||
}
|
}
|
||||||
|
|
||||||
module "child" {
|
module "child" {
|
||||||
source = "child"
|
source = "./child"
|
||||||
providers = {
|
providers = {
|
||||||
"aws.bar" = "aws.foo"
|
aws.bar = aws.foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,6 @@ provider "aws" {
|
||||||
module "mod" {
|
module "mod" {
|
||||||
source = "./mod"
|
source = "./mod"
|
||||||
providers = {
|
providers = {
|
||||||
"aws" = "aws.foo"
|
aws = aws.foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@ provider "aws" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_instance" "thing" {
|
resource "aws_instance" "thing" {
|
||||||
provider = "aws.bar"
|
provider = aws.bar
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ provider "aws" {
|
||||||
}
|
}
|
||||||
|
|
||||||
module "child" {
|
module "child" {
|
||||||
source = "child"
|
source = "./child"
|
||||||
providers = {
|
providers = {
|
||||||
"aws.bar" = "aws.foo"
|
aws.bar = aws.foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,6 @@ module "mod" {
|
||||||
|
|
||||||
# aws.foo doesn't exist, and should report an error
|
# aws.foo doesn't exist, and should report an error
|
||||||
providers = {
|
providers = {
|
||||||
"aws" = "aws.foo"
|
aws = aws.foo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue