mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-06 07:00:27 -05:00
fix show-json test to expect error from nested mod
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.
This commit is contained in:
3
command/testdata/show-json/nested-module-error/main.tf
vendored
Normal file
3
command/testdata/show-json/nested-module-error/main.tf
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module "my_module" {
|
||||
source = "./modules"
|
||||
}
|
||||
3
command/testdata/show-json/nested-module-error/modules/main.tf
vendored
Normal file
3
command/testdata/show-json/nested-module-error/modules/main.tf
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module "more" {
|
||||
source = "./more-modules"
|
||||
}
|
||||
4
command/testdata/show-json/nested-module-error/modules/more-modules/main.tf
vendored
Normal file
4
command/testdata/show-json/nested-module-error/modules/more-modules/main.tf
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
variable "misspelled" {
|
||||
default = "ehllo"
|
||||
descriptoni = "I am a misspelled attribute"
|
||||
}
|
||||
Reference in New Issue
Block a user