terraform/internal/stacks/stackruntime/testdata/mainbundle
Alisdair McDiarmid 0fe26468cd stackruntime: Apply defaults to root variables
When evaluating a stack's root input variables, supplied by the caller,
we must apply any default values specified in the variable
configuration for variables with no specified value. This commit adds
this default fallback case, using NilVal as a marker indicating the lack
of a specified value.

If no default value exists for a variable, it is therefore required to
be supplied by the caller. This commit also reports a diagnostic error
in this case.
2024-03-04 16:20:17 -05:00
..
test stackruntime: Apply defaults to root variables 2024-03-04 16:20:17 -05:00
README.md stackruntime: Beginnings of Validate function 2023-11-15 12:38:51 -08:00
terraform-sources.json stackruntime: Beginnings of Validate function 2023-11-15 12:38:51 -08:00

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 loadMainBundleConfigForTest helper, 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.)