terraform/config/module/test-fixtures
Mitchell Hashimoto 095b7e7831
config/module: disallow root modules named "root"
Fixes #11038

This is a **short term fix**.

Terraform core doesn't currently handle root modules named "root" well
because the prefix `[]string{"root"}` has special meaning and Terraform
core [currently] can't disambiguate between the root module and a module
named "root" in the root module.

This PR introduces a short term fix by simply disallowing root modules
named "root". This shouldn't break any BC because since 0.8.0 this
didn't work at all in many broken ways (including crashes).

Longer term, this should be fixed by removing the special prefix at all
and having empty paths be root. I started down this path but the core
changes necessary are far too scary for a patch release. We can aim for
0.9.
2017-01-08 15:39:57 -08:00
..
basic config: support subdirectories with the "//" syntax 2014-09-26 14:56:04 -07:00
basic-dot config/module: walk actually recurses into dirs, don't copy dot-prefix 2014-10-03 13:46:19 -07:00
basic-git config: support subdirectories with the "//" syntax 2014-09-26 14:56:04 -07:00
basic-hg config/module: hg supports branches/tags/etc. 2014-09-16 10:30:55 -07:00
basic-parent config/module: failing unit test for GH-1232 2015-03-26 09:11:32 -07:00
basic-subdir config: support subdirectories with the "//" syntax 2014-09-26 14:56:04 -07:00
child config/module: Can look up Child with Tree.Child 2014-10-07 20:00:36 -07:00
dup
validate-alias-bad config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
validate-alias-good config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
validate-bad-output config/module: validate outputs line up with ModuleVariables 2014-09-15 13:57:07 -07:00
validate-bad-output-to-module config: add module raw configs to InterpolatedConfigs [GH-1448] 2015-04-29 17:12:28 -07:00
validate-bad-var config/module: validate that parameters into modules valid 2014-09-15 10:32:41 -07:00
validate-child-bad
validate-child-good config: validation error when output is missing value field 2016-01-20 14:00:36 -06:00
validate-module-root config/module: disallow root modules named "root" 2017-01-08 15:39:57 -08:00
validate-module-root-grandchild config/module: disallow root modules named "root" 2017-01-08 15:39:57 -08:00
validate-required-var config/module: validate that required parameters are passed through 2014-09-24 19:40:06 -07:00
validate-root-bad