mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
ece8b6e734
The test suite was not updated to deal with the new assumptions of the HCL2-based expression evaluator, which requires configuration to exist as well as state. Therefore we add a simple configuration fixture to have it validate expressions against. This also includes updates to expect the different error messages that the new evaluator produces.
12 lines
361 B
HCL
12 lines
361 B
HCL
|
|
# This configuration is just here to allow the tests in session_test to
|
|
# evaluate expressions without getting errors about things not being declared.
|
|
# Therefore it's intended to just be the minimum config to make those
|
|
# expressions work against the equally-minimal mock provider.
|
|
resource "test_instance" "foo" {
|
|
}
|
|
|
|
module "module" {
|
|
source = "./child"
|
|
}
|