Commit Graph

54 Commits (8564e934aa57cc59459581ee06479879ebf41bf0)

Author SHA1 Message Date
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)
2 years ago
Liam Cervante 5294c2bb47
Process only relevant variables in the testing framework (#34072)
2 years ago
Liam Cervante 01c0480e77
Test framework will produce regular updates in -json mode (#33953)
2 years ago
Liam Cervante fba5dad097
Test files should be marked as skipped if all their run blocks were skipped (#33950)
2 years ago
Liam Cervante f8d4664bcd
Add additional validation around unknown and null values in test variables (#33861)
2 years ago
Liam Cervante 1c7dfa22b7 Add warning when testing and combining expect_failures with apply operations
2 years ago
Liam Cervante 84e2ebc225 apply defaults when processing variables for assertions
2 years ago
Liam Cervante 041b54fb4b
explicitely disallow duplicate run block names in test files (#33836)
2 years ago
Liam Cervante a560730376
Make the test command fail if resources could not be cleaned up (#33809)
2 years ago
Liam Cervante 91d26b6ea6
Refactor file and run block feedback frequency (#33840)
2 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
Liam Cervante 080ddead6e
testing framework: perform a plan before starting any tests (#33561)
3 years ago
Liam Cervante c91f91cc9e
testing framework: change test file extension to .tftest.hcl (#33553)
3 years ago
Liam Cervante ca85d3bf85
Implement word wrapping in the terraform test view functions (#33547)
3 years ago
Liam Cervante 6c7db16566
testing framework: refactor interrupt logic for immediate exits (#33532)
3 years ago
Liam Cervante 6882dd9530
testing framework: introduce test command optional flags (#33504)
3 years ago
Liam Cervante 837716a703
testing framework: finalise expect_failures functionality (#33506)
3 years ago
Liam Cervante 87ed762619
Make flaky 'TestTest_DoubleInterrupt' test more robust (#33503)
3 years ago
Liam Cervante 4862812c94
testing framework: introduce interrupts for stopping tests (#33477)
3 years ago
Liam Cervante 4b34902fab
[testing framework] allow tests to define and override providers (#33466)
3 years ago
Liam Cervante 5acc95dda7
[Testing Framework] Add module block to test run blocks (#33456)
3 years ago
Liam Cervante ea162f6ab5
[testing framework] prepare for beta phase of development (#33445)
3 years ago
Liam Cervante dfc26c2ac4
[Testing Framework] Add test command to Terraform CLI (#33327)
3 years ago