Commit Graph

112 Commits (testing-for-tracing)

Author SHA1 Message Date
Daniel Schmidt e4f91190c9 add tests for dynamic module sources in terraform test
1 month ago
Daniel Schmidt 0c796986bb move load config calls to new mechanism
1 month ago
Daniel Banck 4ef9684188 Rework most of the configuration loading
1 month ago
Radek Simko 0fe906fa8c make copyrightfix
2 months ago
Samsondeen 0b35407d2c
Allow functions in test mock blocks (#37883)
3 months ago
Max Qian 078ac7cb21
fix: `TestTest_Parallel` adds delay to ensure order (#37890)
5 months ago
Liam Cervante e44b870b8b
don't write ephemeral outputs to state (#37821)
6 months ago
Liam Cervante 411f18e6ac
ephemerals: allow root ephemeral outputs in stacks and test (#37813)
6 months ago
Liam Cervante 1e414491c7
evaluate: return diagnostics instead of unknown for uninitialised locals and resources (#37663)
7 months ago
Sarah French 90809dc7e8
Skip TestTest_Parallel due to flakiness (#37594)
7 months ago
Liam Cervante 551ba2e525
Implement controlling destroy functionality within Terraform Test (#37359)
7 months ago
Samsondeen af8cc7e315
test: create all edges to leaf cleanup nodes (#37564)
7 months ago
Liam Cervante f931bc4e0e
test: don't panic when resolving references that haven't been evaluated (#37484)
8 months ago
Ricard Bejarano 4ac49bad2b
terraform test: fix regression when running with no tests (#37475) (#37477)
8 months ago
Liam Cervante dec0edfd5a
terraform test: enable deferrals in Terraform Test with the specified flag (#37370)
9 months ago
Liam Cervante 84c2e2f9e5
terraform test: override prevent_destroy meta attribute (#37364)
9 months ago
Liam Cervante 160b6b35b0
terraform test: include expected diagnostics in verbose mode (#37362)
9 months ago
Liam Cervante 0a7701f19a
terraform test: refactor graph edge calculation (#37357)
9 months ago
Sarah French 7199fbd2bb
Update use of `testChdir` to standard library's `t.Chdir`, remove `testChdir` function from codebase (#37334)
9 months ago
Sarah French 15840b3eae
Replace use of `defer` with `t.Cleanup` in majority of `command` package tests, update `testChdir` to work with t.Cleanup (#37326)
9 months ago
Samsondeen a1332299a5
Test run Parallelism of 1 should not result in deadlock (#37292)
9 months ago
Samsondeen f57642d1a6
tf test: parallelize teardown operations (#37220)
10 months ago
Liam Cervante 777a916435
terraform test: move providers into the graph (#37216)
10 months ago
Liam Cervante 53afa2cd2f
terraform test: move variable evaluation into the terraform test graph (#37205)
11 months ago
Liam Cervante 063b7cf62b
terraform test: check specific dependencies before skipping run blocks (#37204)
11 months ago
Liam Cervante 757efaed9a
terraform test: automatically create edges based on references (#37200)
11 months ago
Liam Cervante f80762d3d5
terraform test: add variable definitions to test files (#37195)
11 months ago
Sarah French 5cc7479e0e
Update test to tolerate durations in scientific notation (very short test durations) (#37041)
11 months ago
Sarah French 8d2dffedb3
Fix defects where `done` is called before the command's `Run` method is invoked (#36852)
1 year ago
Liam Cervante 7fadbe34de
write-only attributes: internal providers should set write-only attributes to null (#36824)
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
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