Commit Graph

66 Commits (ca35e204eef230ce75d43cb7db358a063e20fc92)

Author SHA1 Message Date
Daniel Schmidt b701e152e5
show value is ephemeral in terraform test
2 years ago
Daniel Schmidt 3e7fdd0de9
improve wording of error message
2 years ago
Daniel Schmidt ae103fc491
test: emit a nice error message if the user uses ephemeral resource in terrafom test
2 years ago
Daniel Schmidt 97ba67edea
test: ensure ephemeral values are not shown in diagnostics and warning is printed
2 years ago
Daniel Schmidt 725add6a1a
test: pass in variables during apply
2 years ago
MicahKimel 3258744166
Remove invalid warning during cleanup phase (#35172)
2 years ago
Liam Cervante 448775102c
terraform test: Push evaluation of variables to as late as possible (#35014)
2 years ago
Liam Cervante 6963c54bec
terraform test: don't remove sensitive marks from inputs (#35021)
2 years ago
UKEME BASSEY 0ea25e3b40 fixing tests internal/command/init, view and argumento
2 years ago
UKEME BASSEY 370a471ecb fix json -help display and failing tests
2 years ago
Martin Atkins 14b08c3745 terraform: Move variable validation into its separate node type
2 years ago
Liam Cervante c6ff573180
Include provider functions in scope used to evaluate test assertions (#34825)
2 years ago
Daniel Schmidt 7ae7a203d8
test: allow using global variables in suite-level variable definitions
2 years ago
Liam Cervante 9658f9df6b
mocking overrides: default to concrete empty object when values are missing (#34563)
2 years ago
Liam Cervante 430970c02b
terraform test: Fix crash when file level variables reference variables. (#34531)
2 years ago
Liam Cervante 7e18b1183d
Add test verifying issue #34476 has been fixed (#34478)
2 years ago
Jamie Finnigan 05b0bdac99
adopt hashicorp/cli fork of mitchellh/cli (#34429)
2 years ago
Liam Cervante 5cbf7c5f96
Add docs for automatic var files in test directories (#34349)
2 years ago
Kubo c98e355ca1
terraform test: Collect variables from default var file within testing directory (#34341)
2 years ago
Martin Atkins 0f845adfdb moduletest: EvalContext lives outside of the "terraform" package
2 years ago
Liam Cervante 9ea1aa0a86
terraform test: skip destroy step for empty run blocks (#34331)
2 years ago
Liam Cervante 392e2a6e21
Fix the compile error in command/test_test.go (#34324)
2 years ago
Liam Cervante 6670ab43f7
terraform test: rearrange the order of destroy operations (#34293)
2 years ago
Liam Cervante 08eafe0f2e
Fix flaky test in command/test_test.go (#34320)
2 years ago
Liam Cervante dedb296773
terraform test: connect mock behaviour to test framework (#34205)
2 years ago
Liam Cervante 57edb9c248
testing framework: add warnings for override blocks with invalid targets (#34181)
2 years ago
Liam Cervante b9f6b23ba3
testing framework: add support for functions in variables and providers (#34204)
2 years ago
Liam Cervante ad77877136
terraform test: remove marks before passing variables as inputs to a plan (#34190)
2 years ago
Liam Cervante f90d71f723
testing framework: allow providers to reference run blocks (#34118)
2 years ago
Liam Cervante 5bbdc4c3b6
terraform test: allow providers in test files to reference variables (#34069)
3 years ago
Liam Cervante 5294c2bb47
Process only relevant variables in the testing framework (#34072)
3 years ago
Liam Cervante 01c0480e77
Test framework will produce regular updates in -json mode (#33953)
3 years ago
Liam Cervante fba5dad097
Test files should be marked as skipped if all their run blocks were skipped (#33950)
3 years ago
Liam Cervante f8d4664bcd
Add additional validation around unknown and null values in test variables (#33861)
3 years ago
Liam Cervante 1c7dfa22b7 Add warning when testing and combining expect_failures with apply operations
3 years ago
Liam Cervante 84e2ebc225 apply defaults when processing variables for assertions
3 years ago
Liam Cervante 041b54fb4b
explicitely disallow duplicate run block names in test files (#33836)
3 years ago
Liam Cervante a560730376
Make the test command fail if resources could not be cleaned up (#33809)
3 years ago
Liam Cervante 91d26b6ea6
Refactor file and run block feedback frequency (#33840)
3 years ago
Liam Cervante 802d49a9ca
Handle null outputs in Terraform test files (#33781)
3 years ago
Liam Cervante 4c83e2d524
Terraform test directory must be local to the config directory (#33760)
3 years ago
Liam Cervante 5e63aa01c7
Allow referencing higher level variables from run blocks (#33722)
3 years ago
CJ Horton 98b81d3c50 add missing copyright headers
3 years ago
Liam Cervante 9742f22c4e
Introduce 'run' keyword for referencing outputs from earlier run blocks (#33683)
3 years ago
Liam Cervante 126f34e4e8 Implement updates to testing framework based on recent feedback
3 years ago
Liam Cervante 3bea1171af
test framework: expand variables available to test assertions (#33611)
3 years ago
Liam Cervante 4560a83721
test framework: include transformed config before validating config (#33608)
3 years ago
Liam Cervante f397954c52
testing framework: allow users to specify deeply nested testing directories (#33584)
3 years ago
Liam Cervante 4122ba86fc
terraform test: fix crash when using nested modules from test run blocks (#33589)
3 years ago
Liam Cervante e1019b3641
testing framework: validate the configuration before terraform test (#33559)
3 years ago