mirror of https://github.com/hashicorp/terraform
One of the show json command tests expected no error when presented with an invalid configuration in a nested module. Modify the test created in PR #21569 so that it can still verify there is no panic, but now expect an error from init.pull/22098/head
parent
8111050c66
commit
e4640a43d7
@ -0,0 +1,3 @@
|
||||
module "my_module" {
|
||||
source = "./modules"
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
module "more" {
|
||||
source = "./more-modules"
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
variable "misspelled" {
|
||||
default = "ehllo"
|
||||
descriptoni = "I am a misspelled attribute"
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
variable "misspelled" {
|
||||
default = "ehllo"
|
||||
descriptoni = "I am a misspelled attribute"
|
||||
variable "ok" {
|
||||
default = "something"
|
||||
description = "description"
|
||||
}
|
||||
|
||||
@ -1,23 +1,31 @@
|
||||
{
|
||||
"format_version": "0.1",
|
||||
"terraform_version": "0.12.1-dev",
|
||||
"planned_values": {
|
||||
"root_module": {}
|
||||
},
|
||||
"configuration": {
|
||||
"root_module": {
|
||||
"format_version": "0.1",
|
||||
"terraform_version": "0.12.1-dev",
|
||||
"planned_values": {
|
||||
"root_module": {}
|
||||
},
|
||||
"configuration": {
|
||||
"root_module": {
|
||||
"module_calls": {
|
||||
"my_module": {
|
||||
"source": "./modules",
|
||||
"module": {
|
||||
"module_calls": {
|
||||
"my_module": {
|
||||
"source": "./modules",
|
||||
"module": {
|
||||
"module_calls": {
|
||||
"more": {
|
||||
"module": {}
|
||||
}
|
||||
}
|
||||
"more": {
|
||||
"module": {
|
||||
"variables": {
|
||||
"ok": {
|
||||
"default": "something",
|
||||
"description": "description"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"source": "./more-modules"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue