Commit Graph

214 Commits (f8fb61de12dea9ac94de3060a0d3e97ce9b5480b)

Author SHA1 Message Date
Daniel Schmidt 102a561e3d add actions to the planfile config
11 months ago
Samsondeen 3f7d043566
Append warning in CLI output when query result is empty (#37379)
11 months ago
Liam Cervante dec0edfd5a
terraform test: enable deferrals in Terraform Test with the specified flag (#37370)
11 months ago
Liam Cervante 84c2e2f9e5
terraform test: override prevent_destroy meta attribute (#37364)
11 months ago
Samsondeen 36836fd456
Tests for query command outputs (#37343)
11 months ago
Daniel Banck 3607089016
Support tfquery files in `terraform fmt` (#37347)
11 months ago
Liam Cervante 0a7701f19a
terraform test: refactor graph edge calculation (#37357)
11 months ago
Sarah French d1e412fcf0
PSS: Add initial (incomplete) version of code changes to the `init` command for using pluggable state storage (#37321)
11 months ago
Samsondeen a1332299a5
Test run Parallelism of 1 should not result in deadlock (#37292)
12 months ago
Sarah French b3d7dae793
Add config parsing and validation for PSS (#37178)
1 year ago
Liam Cervante 777a916435
terraform test: move providers into the graph (#37216)
1 year ago
Liam Cervante 53afa2cd2f
terraform test: move variable evaluation into the terraform test graph (#37205)
1 year ago
Liam Cervante 063b7cf62b
terraform test: check specific dependencies before skipping run blocks (#37204)
1 year ago
Liam Cervante 757efaed9a
terraform test: automatically create edges based on references (#37200)
1 year ago
Liam Cervante f80762d3d5
terraform test: add variable definitions to test files (#37195)
1 year ago
Sarah French 884fc64618
Remove unused test fixture "push-backend-new" (#36842)
1 year ago
Liam Cervante 7fadbe34de
write-only attributes: internal providers should set write-only attributes to null (#36824)
1 year ago
Samsondeen 595cd80666
CLI command for listing state identities (#36705)
1 year ago
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
James Bardin 332bce3531 diagnostics should not contain URLs
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
Radek Simko 70a1fd5e98
Fix diagnostic & avoid variable override via environment (#36435)
1 year ago
Samsondeen 2f0f537e69
Terraform test: Execute eligible test runs in parallel (#36300)
1 year ago
Sarah French 6b81f7184c
Change JUnit `terraform test` output to include test failure details inside `<failure>` elements, use the error message as the `message` attribute (#36316)
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
Mark DeCrane e6bd282963
Merge pull request #36062 from hashicorp/TF-19313/modules-cmd-human-view
2 years ago
Samsondeen aa38305344
Merge pull request #36186 from hashicorp/sams/skip-graph-cycle-validation
2 years ago
Samsondeen Dare 77c362b414 Skip graph cycle validation when using the graph command
2 years ago
James Bardin c128eaa092 don't validate apply variables from auto files
2 years ago
James Bardin 4883499a89 test non-string env var input variables
2 years ago
Mark DeCrane b2a90cf587 Testing updates
2 years ago
Daniel Schmidt 2e026dec0f
ephemeral: set ephemeral variables for combined plans as well
2 years ago
Sebastian Rivera a5294c2096 Impl tests for the modules command
2 years ago
Bruno Schaatsbergen 098234e244
states: check root output value changes in refresh-only mode (#35812)
2 years ago
Daniel Schmidt 725add6a1a
test: pass in variables during apply
2 years ago
makx 2a9a8c2aca
show deprecation warning if -state is used with plan, apply, refresh (#35660)
2 years ago
kmoe fab3673f8d
lang: stabilise ephemeral values experiment (#35636)
2 years ago
Liam Cervante 4f62fcac53
init: fix invalid + duplicate required provider blocks crashing (#35533)
2 years ago
MicahKimel 3258744166
Remove invalid warning during cleanup phase (#35172)
2 years ago
Liam Cervante 48fc2d3ac7
terraform test: Disallow version constraints within test files (#35161)
2 years ago
Nick Fagerlund 40b6f21b3d
Merge pull request #35050 from hashicorp/rebrand-hcp-terraform
2 years ago
Sebastian Rivera 015f795ff0 Rebrand Terraform Cloud to HCP Terraform
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 7fb13b8868 fixing tests
2 years ago
UKEME BASSEY c7bbc09631 move all command args from command/init to args/init
2 years ago
UKEME BASSEY 0ea25e3b40 fixing tests internal/command/init, view and argumento
2 years ago
UKEME BASSEY 26f01d699a add test for -json support
2 years ago
Liam Cervante c6ff573180
Include provider functions in scope used to evaluate test assertions (#34825)
2 years ago
Daniel Schmidt 0529299cc3
run terraform fmt on test
2 years ago
Daniel Schmidt 7ae7a203d8
test: allow using global variables in suite-level variable definitions
2 years ago
Martin Atkins 884e1fb2a4 terraform: Plans can be "complete" and "applyable"
2 years ago
HenriBlacksmith 49663bfc33
terraform fmt: add .tfmock.hcl as a supported file extension (#34580)
2 years ago
James Bardin c4a2f74054
Merge pull request #34567 from hashicorp/jbardin/handling-instance-value-marks
2 years ago
James Bardin 8994e914b7 add sensitive attributes to test json output
2 years ago
James Bardin 8655b08b19 fix sensitive_attributes in test
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)
3 years ago
Liam Cervante 5cbf7c5f96
Add docs for automatic var files in test directories (#34349)
3 years ago
Kubo c98e355ca1
terraform test: Collect variables from default var file within testing directory (#34341)
3 years ago
Liam Cervante 9ea1aa0a86
terraform test: skip destroy step for empty run blocks (#34331)
3 years ago
Liam Cervante 6670ab43f7
terraform test: rearrange the order of destroy operations (#34293)
3 years ago
Martin Atkins 844b1616e8 command/graph: Simpler resource-only graph by default
3 years ago
Liam Cervante dedb296773
terraform test: connect mock behaviour to test framework (#34205)
3 years ago
Liam Cervante 57edb9c248
testing framework: add warnings for override blocks with invalid targets (#34181)
3 years ago
Liam Cervante b9f6b23ba3
testing framework: add support for functions in variables and providers (#34204)
3 years ago
Liam Cervante ad77877136
terraform test: remove marks before passing variables as inputs to a plan (#34190)
3 years ago
Liam Cervante f90d71f723
testing framework: allow providers to reference run blocks (#34118)
3 years ago
Liam Cervante 5bbdc4c3b6
terraform test: allow providers in test files to reference variables (#34069)
3 years ago
Liam Cervante 01c0480e77
Test framework will produce regular updates in -json mode (#33953)
3 years ago
James Bardin 2664c062c9
Merge pull request #33932 from hashicorp/jbardin/import-for-each
3 years ago
Liam Cervante fba5dad097
Test files should be marked as skipped if all their run blocks were skipped (#33950)
3 years ago
James Bardin 2c4608fe9e update import validate test
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 802d49a9ca
Handle null outputs in Terraform test files (#33781)
3 years ago
Liam Cervante 5e63aa01c7
Allow referencing higher level variables from run blocks (#33722)
3 years ago
Brandon Croft 114f876f81
Merge pull request #33602 from hashicorp/TF-8071-download-and-verify-the-plugin-in-terraform
3 years ago
Liam Cervante 9742f22c4e
Introduce 'run' keyword for referencing outputs from earlier run blocks (#33683)
3 years ago
Brandon Croft 63e017b81b
cloudplugin: download and verify plugin
3 years ago
Liam Cervante 126f34e4e8 Implement updates to testing framework based on recent feedback
3 years ago
Liam Cervante 3cce200d0e Fix root cause of race condition in testing framework tests
3 years ago
Liam Cervante f8b1fe47dd
Make config errors more important during init operations (#33628)
3 years ago
Liam Cervante 8b764f2e1b
fix race condition in no_provides_in_main test (#33616)
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