Commit Graph

82 Commits (f2bc9164873bdec092456aba719d7e17d10fa342)

Author SHA1 Message Date
Liam Cervante aaf617d6d7
Add test case to ensure no regression of already fixed crash (#36583)
1 year ago
Samsondeen 3f4ed7e019
Ensure that all states are cleaned up (#36616)
1 year ago
Samsondeen 1bd312f155
Produce detailed diagnostic objects when test run assertions fail (#36522)
1 year ago
Liam Cervante 0acd732911
Fix flaky test in test_test.go (#36566)
1 year ago
Samsondeen 85db2264db
skip flaky test (#36540)
1 year ago
Samsondeen 018110c012
No state to cleaup when it is empty (#36526)
1 year ago
Samsondeen 2e91113224
Terraform test: Consolidate test execution procedure (#36459)
1 year ago
Samsondeen 4161e88391
Continue test execution after an expected failure (#36447)
1 year ago
Samsondeen 7f29df96a0
Allow terraform init when only test files are present in directory (#36429)
1 year ago
Samsondeen 2f0f537e69
Terraform test: Execute eligible test runs in parallel (#36300)
1 year ago
Samsondeen 16a34fe47f
Accept CLI option for the number of parallel ops in a test run's plan/apply (#36323)
1 year ago
Sarah French 39224976a8
Make test fail if JUnit feature is experimental (#36348)
1 year ago
Kévin Andrieux 258f91ab0c
feat: add state_key for test run blocks (#36185)
1 year ago
Liam Cervante 408f323efa
test: also allow mock_data and mock_resource blocks to generate data during planning (#36317)
1 year ago
Sarah French ab6e4f2299
Refactor JUnit XML output of `terraform test` into a new `junit` package (#36304)
1 year ago
Samsondeen aec7c3cc89
terraform test: allow computed/mocked values override during planning (#36227)
1 year ago
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