Commit Graph

1097 Commits (testing-for-tracing)

Author SHA1 Message Date
Kevin Vu 26f289aeb5
testing: include file-level errors in JUnit skipped elements (#37806)
6 months ago
Liam Cervante 411f18e6ac
ephemerals: allow root ephemeral outputs in stacks and test (#37813)
6 months ago
Sarah French efb2a1c567
PSS: Let the `init` command recognise when there are no changes in configuration. (#37777)
6 months ago
Sarah French 76f2982c68
Update the init command's help text to describe PSS-related flags (#37773)
6 months ago
Sarah French 6b73f710f8
PSS: Implement initialisation of new working directory (or use of `-reconfigure` flag) while using `state_store` (#37732)
6 months ago
Sebastien Dionne 1047b5355c
Fix typos and linguistic errors in documentation (#37770)
6 months ago
Sarah French d11bdf6832
Refactor backend error strings as custom errors or pre-made diagnostics (#37762)
6 months ago
Daniel Schmidt 2714cfde69 standardize on marks.Has
7 months ago
Liam Cervante 6b17cfe2e5
actions: connect invoke flag with TFC (#37544)
7 months ago
Sarah French d573104221
PSS: Add `stateStoreInitFromConfig` method to `Meta` (#37723)
7 months ago
Sarah French 17445f6c5f
PSS: Add chunk size negotiation to `savedStateStore` method, update mock provider for tests. (#37726)
7 months ago
Sarah French 312f296c2d
PSS: Add `savedStateStore` method to `Meta` (#37558)
7 months ago
Akella Umesh ea20db63fb
actions: add missing actions output for terraform apply cli (#37692)
7 months ago
James Bardin 9c2b2c579a remove id from generated config
7 months ago
Samsondeen 2274026c68
query: add -query flag to validate command (#37671)
7 months ago
Sarah French b9522561c8
PSS: Add reusable method for obtaining the provider factory needed for accessing a state store. (#37665)
7 months ago
Liam Cervante 1e414491c7
evaluate: return diagnostics instead of unknown for uninitialised locals and resources (#37663)
7 months ago
Samsondeen a7504719ef
list: send non-null "config" object to provider when not present in the list block (#37620)
7 months ago
Mark DeCrane f8b0051bae
Merge pull request #37645 from hashicorp/handle-help-usage-stacks-plugin
7 months ago
Liam Cervante e65c562355
actions: allow invoke only on local execution while TFC adds support (#37653)
7 months ago
Mark DeCrane 10f00d437f Use raw args in -help flag handling
7 months ago
Samsondeen 719aefdb89
tf query: ready list blocks for beta (#37619)
7 months ago
Sarah French 5981cd2bf7
Prepare main branch for post-v1.14 development (#37621)
7 months ago
Daniel Schmidt 332e0386ea remove feature flag from invoke flag
7 months ago
Daniel Schmidt d83cd73ecf fix action reference
7 months ago
Kristin Laemmert df113486a1
actions: remove references to action types, linked resources (#37616)
7 months ago
Samsondeen 7379832fb8
query: add identity_version to list_resource_found json output (#37612)
7 months ago
Daniel Schmidt 871451122f actions: move schema to single action type and remove linked resources
7 months ago
Sarah French 6847e763de
Update calls to StateMgr method to use diagnostics more conventionally (#37597)
7 months ago
Liam Cervante ffdf9f2a86
actions: preserve unknown metadata in the json plan (#37611)
7 months ago
Daniel Banck 1ac8497994
Add support for Terraform Search in the cloud backend (TF-25935) (#37479)
7 months ago
Samsondeen 8097374c3d
Fix panic when generating json config for tf query (#37596)
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
Liam Cervante 00d680d819
apply: include sensitive metadata when comparing changed input values (#37582)
8 months ago
Samsondeen af8cc7e315
test: create all edges to leaf cleanup nodes (#37564)
8 months ago
Kristin Laemmert cad076409c
Fix e2e tests on windows (#37572)
8 months ago
Kristin Laemmert cf9c491d9f
fix minor regression in tests (#37570)
8 months ago
James Bardin 1cb7d1859f
Merge pull request #37515 from hashicorp/jbardin/generate-config
8 months ago
Sarah French 8503c45013
Update `backend.Backend`'s `StateMgr` method to return diagnostics instead of primitive errors (#37496)
8 months ago
Sarah French 61a7914dd9
Add test helper to create mock provider that contains a state store (#37556)
8 months ago
Daniel Schmidt 85717fba7e actions: add number of invoked actions to plan summary
8 months ago
Daniel Schmidt ad4371342f track partial expanded action invocations through deferred action invocation
8 months ago
Daniel Schmidt b2c4766d5e implement review feedback
8 months ago
Daniel Schmidt dffeeec81e partially expand triggers as well
8 months ago
Liam Cervante 5124967f5a
actions: allow skipping refresh when invoking actions (#37541)
8 months ago
Liam Cervante 673717d01a
actions: render invoked actions (#37540)
8 months ago
Liam Cervante b0ff7c271c
Revert "actions: allow skipping refresh when invoking actions (#37523)" (#37539)
8 months ago
Liam Cervante 8488fbb35c
Revert "actions: render invoked actions (#37522)" (#37538)
8 months ago
James Bardin 4c610ac5e6 use the new genconfig types throughout
8 months ago
James Bardin ddc47f15e7 remove the recursive genconfig resource struct
8 months ago
Daniel Schmidt 176263d936 actions: remove future action types
8 months ago
Liam Cervante e43eeaaf2e
actions: update JSON output to include invoked actions (#37527)
8 months ago
Sarah French 5be24bf1d0
Fix experimental gating of PSS feature (#37526)
8 months ago
Liam Cervante d39fcc4f0b
actions: allow skipping refresh when invoking actions (#37523)
8 months ago
Liam Cervante 0fae555389
actions: render invoked actions (#37522)
8 months ago
Liam Cervante 866363ffff
actions: add invoke nodes to the graph (#37521)
8 months ago
Liam Cervante e854d8364d
actions: add invoke flag for plan and apply commands (#37512)
8 months ago
Daniel Schmidt 8b65426ecf move action schemas out of experimental flag
8 months ago
Sarah French f9b4f0a898
Update info for debugging why this test may fail (#37461)
8 months ago
Daniel Banck 2463f864dd
Exclude nested config block from list resource schemas (#37495)
8 months ago
Sarah French b11b54e142
Add code comment to make in-progress migration from Ui to View more obvious (#37492)
8 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
Daniel Schmidt 3b12eb0866 actions: serialize trigger event in hooks
8 months ago
Daniel Schmidt 47994b5542 don't omit action lifecycle indexes
8 months ago
Daniel Schmidt 871d3ce64f support sensitive values in action configuration
8 months ago
Daniel Schmidt 14c83aa7ee allow reporting action invocations as deferred
8 months ago
Daniel Schmidt 0313b1471d jsonplan: move action invocation marshalling to separate function
8 months ago
Kristin Laemmert 76a9aa288b
fix: move parsing action reference expressions into terraform (#37458)
8 months ago
Daniel Schmidt 90bdc053f2 add SRO message for planned action invocation
8 months ago
Sarah French 62b3ba590a
Update `backend.Backend` interface to return diagnostics from `Workspaces` and `DeleteWorkspace` methods (#37430)
8 months ago
Samsondeen 1ce7d800c0
fix flaky test TestJSONHook_EphemeralOp_progress (#37451)
8 months ago
Daniel Schmidt 219c31f4eb action: move action trigger into nested struct
8 months ago
Sarah French da76dba3dc
PSS: Add alternative, experimental version of `init` command that downloads providers in two stages (#37350)
8 months ago
Sarah French 1c143de7c9
Update help output to consistently call out -state and -state-out flags as legacy and related to the local backend. (#37446)
8 months ago
Daniel Schmidt 3cf76a7d45 make wording more consistent
8 months ago
Daniel Schmidt ecfbdaf18d add number of action invocations to change summary
8 months ago
Radek Simko 3b55d61ffa
command/views: Document and divide JSON message types (#37426)
8 months ago
Daniel Schmidt 102a561e3d add actions to the planfile config
9 months ago
Daniel Banck dcb0486c44
Update query complete message to a struct (#37395)
9 months ago
Samsondeen 3f7d043566
Append warning in CLI output when query result is empty (#37379)
9 months ago
Daniel Schmidt 8a88bbbff3 use constants
9 months ago
Daniel Schmidt fb0445faf2 allow language experiments for terraform show
9 months ago
Daniel Schmidt ccd89c58b2 fail on marked values in action config
9 months ago
Daniel Schmidt 4fb4c3f056 render action config values
9 months ago
Daniel Schmidt dd86671056 marshal action schemas into json provider representation
9 months ago
Daniel Schmidt eb26b72d55 display lifecycle triggered actions aside their triggering resources
9 months ago
Daniel Schmidt 7d8b79a596 add a simple first rendering of action invocations to be run
9 months ago
Daniel Schmidt 5e288f56e2 add new planfile fields to terraform show -json
9 months ago
Sarah French f494ff5540
Pull `init` command's Run method logic into separate method in new file, enable accessing experimental version of init logic via experiments and flags or ENVs (#37327)
9 months ago
Liam Cervante dec0edfd5a
terraform test: enable deferrals in Terraform Test with the specified flag (#37370)
9 months ago
Mark DeCrane 14d378f9ce Ignore cmd arg parsing errors, we can expect these to happen
9 months ago
Sarah French 7b28a5d842
PSS: Allow backend or state_store config to be passed via BackendOpts into method for initialising the operations backend for a command (#37346)
9 months ago
Liam Cervante 84c2e2f9e5
terraform test: override prevent_destroy meta attribute (#37364)
9 months ago
Samsondeen 36836fd456
Tests for query command outputs (#37343)
9 months ago
Daniel Schmidt c2b35e7ee7 remove duplicate place to store action invocations from plan
9 months ago
Daniel Schmidt 834665e332 use better hook identity
9 months ago
Liam Cervante 160b6b35b0
terraform test: include expected diagnostics in verbose mode (#37362)
9 months ago
Daniel Banck c177897320
Improve list result output (#37344)
9 months ago
Daniel Banck 3607089016
Support tfquery files in `terraform fmt` (#37347)
9 months ago
Liam Cervante 0a7701f19a
terraform test: refactor graph edge calculation (#37357)
9 months ago
Sarah French d1e412fcf0
PSS: Add initial (incomplete) version of code changes to the `init` command for using pluggable state storage (#37321)
9 months ago
Kristin Laemmert 9256074c43
Actions in plan/changes (#37320)
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 e79b5a1628
Replace custom `testCwd` function with standard `testing` library (#37335)
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
Sarah French 7a27366b39
PSS: Add ability to create hashes of the `state_store` block and of its nested `provider` block (#37278)
9 months ago
Sarah French 145e152a57
Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085)
10 months ago
Radek Simko 5437cd7c8a
Prepare main branch for 1.14 development (cleanup) (#37312)
10 months ago
Samsondeen 0f7a690d25
Skip query e2e test when we cannot build at runtime (#37307)
10 months ago
Samsondeen 870bf99593
List implementation for simple provider and e2e tests (#37297)
10 months ago
Sarah French 677e5ea276
Add test coverage for Meta's determineInitReason method, fix error in diagnostic (#37303)
10 months ago
Sarah French d02a1ed1b7
PSS: Make the state storage provider's config stateful (backend state, planfiles) (#37286)
10 months ago
Daniel Schmidt 8649eae35d rename ActionInvocation for clarity
10 months ago
Daniel Schmidt 8c657163b2 add hooks for action invocation lifecycle
10 months ago
Samsondeen a1332299a5
Test run Parallelism of 1 should not result in deadlock (#37292)
10 months ago
Samsondeen 8d8b2bb694
Generate config for list results (#37173)
10 months ago
Daniel Banck 2b9d25c7fd
Add `terraform query` subcommand (TF-25494) (#37174)
10 months ago
Mark DeCrane 577f8f02ae
Merge pull request #37283 from hashicorp/TF-26979/central-binary-download-tf-stacks-cli
10 months ago
Mark DeCrane 1529739017 remove the cache override arg from the args passed to the plugin
10 months ago
Mark DeCrane 60dbc8b12f Move stacksplugin cache to .terraform.d, allow for overriding of cache dir location
10 months ago
Sarah French 2349481b23
Update data stored in plan files to enable using PSS with saved plans (#37246)
10 months ago
Daniel Banck ab04e5cfec
Include list resource schemas in provider json schemas (TF-25497) (#37163)
10 months ago
Sarah French 38e2ed42c4
Make the `workspace` command explicitly protect the default workspace, instead of relying on backend implementations (#37256)
10 months ago
Sarah French d3b02a8469
Refactor code to use backend config state's `SetConfig` method, protect against nil receiver (#37254)
10 months ago
Sarah French a91d3aafa8
Fix bug in DeepCopy of backend state data that causes loss of StateStore data (#37276)
10 months ago
Sarah French 3617b909c1
Make `workspace delete` command reject empty string arguments (#37275)
10 months ago
Sarah French 9212a2efdd
Make Terraform reject empty strings as invalid workspace names (#37267)
10 months ago
Matej Risek a9b67a6cdc
stacks: Don't require built-in providers to be listed under required providers. (#37234)
10 months ago
Samsondeen f57642d1a6
tf test: parallelize teardown operations (#37220)
10 months ago
Sarah French 2559f0a3db
Update backend state file so it can describe PSS state (#37179)
11 months ago
Sarah French b3d7dae793
Add config parsing and validation for PSS (#37178)
11 months ago
Liam Cervante 777a916435
terraform test: move providers into the graph (#37216)
11 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
Liam Cervante f3489c0480
deferred actions: should still be experimental (#37167)
11 months ago
Mattias Fjellström 3252fa8f42
Add missing JUnit XML flag to test command help string (#37161)
11 months ago
Mark DeCrane ffca158061
Merge pull request #37015 from hashicorp/TF-25893/handle-stacks-plugin-interupts
11 months ago
Daniel Banck 8213714929
Include identity in import apply UI output (#37044)
11 months ago
Radek Simko 4e00e1ecdb
fix: Avoid crash on test failure in BinaryOpExpr in function call (#37071)
11 months ago
Liam Cervante c5445d4568
stacks: move the RPCAPI and deferred actions out of experimental (#37067)
11 months ago
Mark DeCrane 5b33d74641 Handle the propagation of interrupt signals to stacks plugin
11 months ago
UKEME BASSEY f7cb9097da
Merge pull request #36931 from hashicorp/TF-25178-add-stacks-plugin-proto
11 months ago
drewmullen 09cff2be39
include help entry for -replace (#36780)
11 months ago
Sarah French 5cc7479e0e
Update test to tolerate durations in scientific notation (very short test durations) (#37041)
11 months ago
UKEME BASSEY a732b606a1 make hostname and token optional, read token from cli file
12 months ago
UKEME BASSEY 3bc13593f9 add proto files gen for stacks plugin, & regenerate protofiles
12 months ago
UKEME BASSEY b12984470b Merge remote-tracking branch 'origin/main' into TF-25178-add-stacks-plugin-proto
12 months ago
Daniel Banck 0aa4ce972d
Add resource identities to plan file and JSON output (#36903)
12 months ago
UKEME BASSEY 509be4ea1b add stacks plugin
12 months ago
UKEME BASSEY 91b1dd3cc3 extend existing cloud plugin to accomodate new plugin
12 months ago
Sarah French 8d2dffedb3
Fix defects where `done` is called before the command's `Run` method is invoked (#36852)
1 year ago
Radek Simko 36fb64f297
grpcwrap+provider-simple: Test ephemeral resource schemas in v5 protocol (#36878)
1 year ago
Sarah French ea767aa7ad
Add comments about use of ResourceStores with TestProviders (#36856)
1 year ago
Sarah French 884fc64618
Remove unused test fixture "push-backend-new" (#36842)
1 year ago
Samsondeen c0a7ff235b
Apply some new go collection features (#36818)
1 year ago
Liam Cervante 7fadbe34de
write-only attributes: internal providers should set write-only attributes to null (#36824)
1 year ago
Daniel Banck 6917e69d12
Config-driven importing through identity (TF-23179) (#36703)
1 year ago
Sarah French 371e625ea9
Update URLs from `www.terraform.io` to `developer.hashicorp.com` (#36792)
1 year ago
Sarah French 2d6eda2877
Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716)
1 year ago
Samsondeen 595cd80666
CLI command for listing state identities (#36705)
1 year ago
Daniel Banck 1210d68836
Output resource identities in State JSON (TF-23753) (#36615)
1 year ago
Daniel Banck cd433fa6d9
Marshall resource identity schemas in jsonprovider (#36675)
1 year ago
Daniel Schmidt fec6e4b552 send resource identities to provider calls
1 year ago
Daniel Banck b2b42c0fb4
Store resource identities in state (TF-23255) (#36464)
1 year ago
Guilherme Faria de Souza d845df938d
Enhance elapsed time display in UI Hook with minutes and seconds (#36618)
1 year ago
Liam Cervante aaf617d6d7
Add test case to ensure no regression of already fixed crash (#36583)
1 year ago
Daniel Banck 10c9b64007
Rename schema.Block to Body (#36629)
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
Liam Cervante 0acd732911
Fix flaky test in test_test.go (#36566)
1 year ago
Samsondeen 85db2264db
skip flaky test (#36540)
1 year ago
Sarah French 85b482e05a
Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456)
1 year ago
Samsondeen 018110c012
No state to cleaup when it is empty (#36526)
1 year ago
Radek Simko 289a3568da
Address `go vet` 1.24 failures (#36485)
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 86295f518c
Don't set default parallelism for cloud runs (#36441)
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
Samsondeen 16a34fe47f
Accept CLI option for the number of parallel ops in a test run's plan/apply (#36323)
1 year ago
Bruno Schaatsbergen 61acb0cb3a
tfdiags: add Warnings method (#36392)
1 year ago
Sarah French b16a50973f
Add reusable Diagnostic comparer to `tfdiags` package (#36385)
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
Sarah French 39224976a8
Make test fail if JUnit feature is experimental (#36348)
1 year ago
Sarah French 21cafd70ea
Add more details to JUnit `terraform test` output to describe why a test was skipped (#36315)
1 year ago
Kévin Andrieux 258f91ab0c
feat: add state_key for test run blocks (#36185)
1 year ago
Sarah French 8e1d36681c
Promote JUnit output 'terraform test' feature from experimental status, make incompatibility with remote test execution explicit via flag validation (#36324)
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
Sarah French 43f31c43b0
Add start time timestamps to `<testcase>`/Run data in JUnit XML output from `terraform test` (#36295)
1 year ago
Samsondeen aec7c3cc89
terraform test: allow computed/mocked values override during planning (#36227)
1 year ago
Daniel Schmidt 276662f754 ephemeral: add test case for block rendering
1 year ago
Liam Cervante 672cd816d5 don't precompute actions
1 year ago
Daniel Schmidt 0e6a3ac994 ephemeral: render write-only attributes in plan UI
1 year ago