opentofu/internal/configs/testdata
Alisdair McDiarmid 551f6316fa Do not apply type defaults to null values
Applying object type defaults to null values can convert null to an
object with partial attributes. This means that even a specified default
value of null will not remain null after variable evaluation.

In turn, the result can then be invalid, if not all attributes in an
object type have defaults specified.

This commit skips the type default application step during config load
and variable evaluation if the default or given value is null of any
type. We still perform type conversion.
2022-09-15 15:32:36 -04:00
..
config-build Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
config-diagnostics configs: Refined error messages for mismatched provider passing 2022-03-10 10:05:56 -08:00
dir-empty Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
duplicate-local-name check for duplicate defaults from resource names 2022-06-15 13:32:30 -04:00
error-files configs: Validate pre/postcondition self-refs 2022-02-03 09:37:22 -05:00
escaping-blocks Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
experiments Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
invalid-files configs: Fix check block configuration diagnostics 2022-06-21 12:13:45 -04:00
invalid-modules Conclude module variable optional attrs experiment 2022-06-13 12:27:21 -04:00
nested-backend-warning Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
nested-cloud-warning Add cloud {} configuration block for Terraform Cloud 2021-10-28 19:29:09 -05:00
nested-errors Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
provider-reqs Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
providers-explicit-fqn Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
valid-files Do not apply type defaults to null values 2022-09-15 15:32:36 -04:00
valid-modules add failing test for IgnoreAllChanges override 2021-11-01 19:00:54 +00:00
warning-files Conclude module variable optional attrs experiment 2022-06-13 12:27:21 -04:00