Commit Graph

1016 Commits (da74b59ea1d3aa4d7706579c95f63c778f2e515e)

Author SHA1 Message Date
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)
7 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