mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-03 05:50:43 -05:00
When handling root input variable values, we now consider unset and null values to be equivalent to each other. This is consistent with how we handle variables in embedded stacks, and very similar to how we handle variable in the modules runtime with `nullable = false`. One difference from the modules runtime case is that we do not prevent a null default value for stack variables. |
||
|---|---|---|
| .. | ||
| test | ||
| README.md | ||
| terraform-sources.json | ||
Synthetic source bundle for most tests
Since the tests in this package are concerned primilary with configuration evaluation and less concerned about configuration bundling or loading, most of our tests can just use subdirectories of the only package in this synthetic source bundle to avoid the inconvenience of maintaining an entire source bundle for each separate test.
To use this:
-
Make a subdirectory under
test/with a name that's related to your test case(s). -
Use the
loadMainBundleConfigForTesthelper, passing the name of your test directory as the source directory.(The helper function will automatically construct the synthetic remote source address needed to locate that subdirectory within the source bundle.)