mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-19 02:39:17 -05:00
This stubs out the basic structure of stackeval's equivalent of a graph walk, which is really just a recursive tree walk starting async tasks that might depend on each other via the abstractions in package "promising". This initial work is sufficient to validate the inputs to an embedded stack call when referring to input variables in the calling stack, showing that the expression evaluation model seems to be working and the use of promises to deal with dependency ordering seems viable.
749 B
749 B
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.)