Commit Graph

3649 Commits (f72944530d01bda68eee6b3fdd0d98e02e5aa8aa)

Author SHA1 Message Date
James Bardin 7df949c6c3 add TF_LOG_TRACE to turn off graph trace output
11 months ago
James Bardin f243754a12 reduce changes lookups in GetResource
11 months ago
Liam Cervante 8135fefa62
terraform test: stop transforming the config under test with new variables (#37152)
11 months ago
Baraa Basata d8d890f3b2
Minimize text diff between `tfplugin{5,6}.proto` (#37093)
11 months ago
Samsondeen ede46c0b81
Allow successful init when constraint matches at least one valid version (#37137)
11 months ago
Samsondeen a5434b421f
Build and Validate list resource nodes (#37011)
11 months ago
Samsondeen b3c5118ede
Add include_resource attr to list block (#37086)
11 months ago
Mark DeCrane ffca158061
Merge pull request #37015 from hashicorp/TF-25893/handle-stacks-plugin-interupts
11 months ago
Daniel Banck 44ae7da18e
Update Plugin Protocol for List and Implement `ValidateListResourceConfig` (#37007)
11 months ago
Mark DeCrane 96c9240945 Add log noting remote operations that have started will continue if command is interrupted
11 months ago
Daniel Banck 8213714929
Include identity in import apply UI output (#37044)
11 months ago
Daniel Banck 421fe3580f
Check GetResourceIdentitySchemas diagnostics and return early (#36999)
11 months ago
Or Shachar 88da854f34
fix: avoid sending HEAD request on provider download (#36998)
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
Liam Cervante b6be635748
stacks migrate: allow resource mapping to include nested resources (#37060)
11 months ago
Affinito Alessandro 71093fd195
Update backend.go minor wording fix (#37054)
11 months ago
Liam Cervante 3d4391865d
stacks: skip resource instance hooks during refresh plans (#37043)
11 months ago
Liam Cervante d5d338faa5
Call the pre and post diff hooks from destroy plan nodes (#37042)
11 months ago
Liam Cervante a80220dcc9
stacks: rename .tfstack files to .tfcomponent (#37013)
11 months ago
Samsondeen 44eb0c69ef
Recognize tf query files (#36929)
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
Kristin Laemmert 386988cb50
Decode action blocks and action_triggers inside resource blocks. (#37030)
11 months ago
Sarah French 5cc7479e0e
Update test to tolerate durations in scientific notation (very short test durations) (#37041)
12 months ago
UKEME BASSEY 65aebd2093 Merge remote-tracking branch 'origin/main' into TF-25178-add-stacks-plugin-proto
12 months ago
UKEME BASSEY 25b5607b7b fix server startup panics
12 months ago
UKEME BASSEY a732b606a1 make hostname and token optional, read token from cli file
12 months ago
Daniel Banck dd10cfc048
Cleanup Terraform Plugin Protocol Files (#37005)
12 months ago
Kristin Laemmert 90357bccba
initial actions addrs (#37003)
12 months ago
James Bardin 0ff9611a20 add filesystem function result test
12 months ago
James Bardin cda65e3d9f make syncdeps
12 months ago
James Bardin 807e084130 final renaming for function results
12 months ago
James Bardin f78adc889e add wrappers to verify file function results
12 months ago
James Bardin a6ec17cb77 rename function results table
12 months ago
James Bardin 29fa9c401f add separate CheckPriorProvider entry point
12 months ago
James Bardin d016070564 move function results hashing to lang
12 months ago
Daniel Banck 49e8b56b32
Only check that the import stub is non-null when importing by ID (#36990)
12 months ago
Daniel Banck c3b5b841cc
Relax resource identity validation (#36989)
12 months ago
UKEME BASSEY 6c283cbc2d Merge remote-tracking branch 'origin/main' into TF-25178-add-stacks-plugin-proto
12 months ago
UKEME BASSEY 3bc13593f9 add proto files gen for stacks plugin, & regenerate protofiles
12 months ago
Daniel Banck c9f707b7fc
Fix resource identity schema on destroy (#36983)
12 months ago
UKEME BASSEY b12984470b Merge remote-tracking branch 'origin/main' into TF-25178-add-stacks-plugin-proto
12 months ago
UKEME BASSEY 6c3be0ce4d Merge remote-tracking branch 'origin/main' into break-dependency-between-statemigrate-and-command
12 months ago
UKEME BASSEY 87e6f51fd9 fix test
12 months ago
Daniel Banck 0aa4ce972d
Add resource identities to plan file and JSON output (#36903)
12 months ago
UKEME BASSEY 5880479a0f break dependency of stack migrate on command Meta to prevent import cycles
12 months ago
Daniel Banck 032cd5f442
Fix version in resource identity upgrade request (#36940)
12 months ago
UKEME BASSEY fcdcb15f56 update stack grpc client
12 months ago
Daniel Banck 2c126026d8
Validate identity in import response (#36893)
12 months ago
Daniel Banck 62c84e33fd
Validate identity to match identity schema (#36904)
12 months ago
UKEME BASSEY 509be4ea1b add stacks plugin
1 year ago
UKEME BASSEY 91b1dd3cc3 extend existing cloud plugin to accomodate new plugin
1 year ago
UKEME BASSEY e1ad6a6fd6 add stacks plugin proto and client
1 year ago
Liam Cervante 1bc7d22ac4
stacks: removed blocks should refresh during refresh plans (#36916)
1 year ago
Liam Cervante 96e50f680f
stacks: ensure consistent sources between removed blocks (#36915)
1 year ago
Liam Cervante dcff9e4d2c
stacks: improve test coverage for removed blocks (#36914)
1 year ago
Liam Cervante 4eaa9d7fa0
stacks: removing embedded stacks should ignore stacks not in state (#36901)
1 year ago
Radek Simko 474fe47e25
backend/oci/deps: Pin flock to v0.10.0 (#36913)
1 year ago
Ravi Prakash Bharti 804e970211
Added Terraform backend implementation for OCI Object Storage (#36872)
1 year ago
Liam Cervante 063757ff45
stacks: refactor plan, state, and removed tracking with tree structures for efficient lookups (#36850)
1 year ago
Daniel Banck 7414a3f76f
Fix import with optional identity attributes (#36887)
1 year ago
Samsondeen be242c36f4
Stacks migrate: migration workflow improvements (#36882)
1 year 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
Daniel Banck 0fb145daa8
Bump Go version to 1.24.2 (#36870)
1 year ago
Sarah French ea767aa7ad
Add comments about use of ResourceStores with TestProviders (#36856)
1 year ago
Liam Cervante a06f82746a
stacks: update removed blocks to allow targeting of embedded stacks (#36814)
1 year ago
Sarah French 884fc64618
Remove unused test fixture "push-backend-new" (#36842)
1 year ago
Sarah French 196205e4ee
Merge pull request #36581 from xiaozhu36/creds
1 year ago
Liam Cervante 2b5101f734
stacks: include existing components when deferring nested stacks (#36788)
1 year ago
Liam Cervante fbd5a7930e
stacks: allow removed blocks to target components in nested stacks (#36787)
1 year ago
Sarah French 46278dad58 Fix bugs where appended diags are not returned
1 year ago
James Bardin 87cdcc350e
Merge pull request #36825 from hashicorp/jbardin/diag-dedupe
1 year ago
James Bardin 291d26ce19 we can't compare location if either are nil
1 year ago
James Bardin c6c21a89a1 hcl diagnostics must check Subject source
1 year ago
James Bardin aeb1c0db09 we can't dedupe extra values in diags
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
James Bardin da42f6b29e don't re-add non-comparable diagnostics
1 year ago
Daniel Banck 6917e69d12
Config-driven importing through identity (TF-23179) (#36703)
1 year ago
Liam Cervante c8044baf47
stacks: emit state updates for unclaimed components (#36702)
1 year ago
Austin Valle 5c4c669882
Fix `ImportResourceState` RPC response decoding for identity data (#36806)
1 year ago
Radek Simko 6f8b5e49c9
providers/testing: Remove unused *TypeName fields (#36813)
1 year ago
Ricard Bejarano 200f4cabb0
Bump golang.org/x/net from 0.37.0 to 0.38.0 (fixes CVE-2025-22872) (#36800)
1 year ago
Sarah French 371e625ea9
Update URLs from `www.terraform.io` to `developer.hashicorp.com` (#36792)
1 year ago
Samsondeen d6e1d26e90
Import references should not be able to reference the import target (#36801)
1 year ago
Liam Cervante 9707a27ee6
stacks: rename Removed to RemovedComponent in stackeval (#36782)
1 year ago
Liam Cervante 7bec38bf5f
stacks: provide stack and config on component creation (#36778)
1 year ago
Sarah French 6ef0498f9c
Update to Go 1.24.1, update dependencies (#36790)
1 year ago
James Bardin 1176955694
Merge pull request #36756 from austinvalle/main
1 year ago
dependabot[bot] 9313c6696a
Bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 (#36748)
1 year ago
Rémi Lapeyre 5a8de9d70d
Add TRACE logs when uploading to the cloud and remote backends (#36757)
1 year ago
Liam Cervante ebdf52cd09
stacks: remove all the unnecessary ctx function parameters (#36762)
1 year ago
Liam Cervante f82ae44484
stacks: make promises identify themselves (#36749)
1 year ago
Sarah French a04664a2e5
Update `hashicorp/go-plugin` dependency (#36561)
1 year ago
James Bardin 09e3042922 remove unused interface
1 year ago
Sarah French 6d55131131
Increase test coverage for local backend's PathsConflictWith and StatePaths methods (#36752)
1 year ago
Austin Valle 2d08b5d0d1 match `internal/plugin6` implementation to `internal/plugin`
1 year ago
Austin Valle 31f1ef37a1 update log
1 year ago
Sarah French aef9e4b1f9
Add test coverage for `local` backend's backend.Backend methods and behaviours (#36750)
1 year ago
Sarah French 052646c3d2
Migrate more testing helpers into tfdiags package (#36474)
1 year ago
Craig Wright 403cc5042a
Merge pull request #36706 from latentd/fix/rename-legacy-terms
1 year ago
T K Chandra Hasan 3bafc6f1a0
Merge branch 'main' into chasan-working
1 year ago
Sarah French 2d6eda2877
Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716)
1 year ago
T K Chandra Hasan f2bc916487
Fix SIGSEGV in proxyDialer
1 year ago
James Bardin 6776664f24
Merge pull request #36719 from hashicorp/jbardin/zero-instance-ephem
1 year ago
James Bardin 069a793a74 make sure ephemeral nodes with zero instances work
1 year ago
Samsondeen 71dbc7d726
migrate command for terraform stacks (#36482)
1 year ago
Samsondeen 8b7e7ad27d
Detect circular references during Validation (#36709)
1 year ago
Samsondeen 595cd80666
CLI command for listing state identities (#36705)
1 year ago
Liam Cervante 9bbe34daa4
stacks: pre-destroy refresh should use a normal plan (#36696)
1 year ago
Liam Cervante c16d466773
stacks: allow multiple removed blocks to target the same component (#36693)
1 year ago
latentd 5edcdef6fc update legacy term: Terraform Cloud agent => HCP Terraform Agent
1 year ago
Daniel Banck 1210d68836
Output resource identities in State JSON (TF-23753) (#36615)
1 year ago
Sarah French 53172a5f8a
Bump `golang.org/x/net` to v0.36.0 (#36691)
1 year ago
Mark DeCrane a1b5ed3a4c
Merge pull request #36655 from hashicorp/IPL-7753/wait-for-post-plan-tasks-remote-backend
1 year ago
Daniel Schmidt bc901abcc5 stacks: test resource identity
1 year ago
Liam Cervante d4d92ea0b9
Fix broken build due to merge conflicts (#36679)
1 year ago
Liam Cervante 3d014d82f3
stacks: fix errors processing index keys of removed blocks (#36673)
1 year ago
magodo 11021356b3
Backend/azure: `subscription_id` infer from Azure CLI & a way to skip *unnecessary* management plane API call (#36623)
1 year ago
Daniel Schmidt 3d11463533 remove unused struct
1 year ago
Daniel Schmidt 98ae4d1fe2 fix indentation
1 year ago
Daniel Schmidt 43fe6ca8cc stacks: add rpc call to list resource identities of a stack
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
Mark DeCrane 0c155929c6 Add polling to wait for post plan tasks to complete in remote backend
1 year ago
Daniel Banck 5b48de5a4e
Update identity related fields in protocol move request (#36662)
1 year ago
James Bardin 4654afb0b8
Merge pull request #36663 from hashicorp/jbardin/data-source-plan
1 year ago
James Bardin e474008b3c additional context test for data resource plan
1 year ago
James Bardin 368b55f57d fix nested structured data resource plan
1 year ago
James Bardin 56137f3b6c prior may be unknown when planning data sources
1 year ago
Samsondeen 08fa94c2ed
Return error when the template's single interpolation results in null value (#36658)
1 year ago
Sebastian Marines 9237b11277
backend/s3: update `hashicorp/aws-sdk-go-base/v2` to `v2.0.0-beta62`
1 year ago
Radek Simko c3dc197465
fix: Avoid duplicated warnings (#36579)
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
James Bardin 60aaaf3e5c
Merge pull request #36619 from hashicorp/jbardin/filter-ephemeral-marks
1 year ago
Samsondeen 3f4ed7e019
Ensure that all states are cleaned up (#36616)
1 year ago
James Bardin 64c68a0a45 don't add paths multiple times in PathsWithMark
1 year ago
James Bardin ad6cbd6d7b use marks.RemoveAll to filter ephemeral marks
1 year ago
James Bardin 1105f16d35 add marks.RemoveAll
1 year ago
Samsondeen 1bd312f155
Produce detailed diagnostic objects when test run assertions fail (#36522)
1 year ago
Radek Simko 473e5931ac
lang/funcs/transpose: Avoid crash due to map with `null` values (#36611)
1 year ago
guimin.hgm 8462c5f3e5 backend/oss: Supports more standard environment variables to keep same with provider setting
1 year ago
James Bardin 332bce3531 diagnostics should not contain URLs
1 year ago
Sarah French b0dbd66eeb
Bump golang.org/x/oauth2 from v0.23.0 to v0.27.0 (#36584)
1 year ago
Liam Cervante 0acd732911
Fix flaky test in test_test.go (#36566)
1 year ago
gofastasf c3b339e69a
Replace custom inode-based file comparison with os.SameFile. (#36562)
1 year ago
Samsondeen 85db2264db
skip flaky test (#36540)
1 year ago
James Bardin 7ac019a941 fix null value bug in SensitivePaths too
1 year ago
James Bardin 322ef7f10b make sure write-only nested types are found
1 year ago
James Bardin 8ceff6f4dd additional write-only tests
1 year ago
James Bardin bfbeee9592 wo attrs can be null, but cannot traverse null
1 year ago
Sarah French 85b482e05a
Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456)
1 year ago
He Guimin 39c880c063
backend/oss: Add new argument tablestore_instance_name used in VPC context (#36253)
1 year ago
Samsondeen 018110c012
No state to cleaup when it is empty (#36526)
1 year ago
James Bardin 231b69e090 add tests for nested map ephemeral validation
1 year ago
James Bardin 377d11b179 don't always convert map to object in CoerceValue
1 year ago
James Bardin 09646ef51d add validation for nested write-only within sets
1 year ago
James Bardin 43805071c2 CoreceValue needs to handle marks when iterating
1 year ago
James Bardin 2ed3e0a16e check parent attributes for write-only validation
1 year ago
James Bardin eb02c6538f
Merge pull request #36491 from hashicorp/jbardin/write-only-validations
1 year ago
James Bardin a3e7be3301 remove copyAndExtendPath which has a generic equivalent
1 year ago
James Bardin 70d6319486 additional WriteOnly tests for NestedSingle
1 year ago
magodo 8913b2ffa8
Backend/azure: Update go-azure-sdk version to v0.20250131.1134653 (#36458)
1 year ago
James Bardin 69337ca005 make sure schemas aren't nil in tests
1 year ago
James Bardin 91feab6b5d use WriteOnlyPaths for validation
1 year ago
James Bardin a3719fe3ee WriteOnlyPaths was returning the wrong paths
1 year ago
James Bardin 716c3b9e93 Update write-only ephemeral validation message
1 year ago
James Bardin 3b3e4bf003 update the rest of the go:generate calls
1 year ago
James Bardin e1485f27fc use go tool to run generate commands
1 year ago
James Bardin bc45d60936 make syncdeps
1 year ago
Radek Simko c40c9378a1
go: bump version to 1.24 (#36478)
1 year ago
Radek Simko 289a3568da
Address `go vet` 1.24 failures (#36485)
1 year ago
Samsondeen a3a42979e2
Ensure that the file teardown summary is displayed before the run's teardown summary (#36483)
1 year ago
Sarah French dcce20fdfb
Improve testing of diagnostic comparer (#36455)
1 year ago
James Bardin 17f4dcfd8d
Merge pull request #36465 from hashicorp/jbardin/sensitive-order
1 year ago
Samsondeen 2e91113224
Terraform test: Consolidate test execution procedure (#36459)
1 year ago
James Bardin e53900c0d4 another path format call
1 year ago
James Bardin c3cdbb876a add test for .AttrSensitivePaths order
1 year ago
James Bardin 5f8d70aafb sort sensitive paths for consistency
1 year ago
James Bardin 2244efa506 remove Sprintf from ValueMarks comparison
1 year ago
James Bardin bd0a632f5b create lang/format package
1 year ago
James Bardin cbd7435dfc udpate tests to match core tfdiags
1 year ago
James Bardin 483c179156 use existing path formatter
1 year ago
James Bardin c721dbd511 use slightly more efficient strings.Builder
1 year ago
Mark DeCrane 166434811e
Merge pull request #36453 from hashicorp/IPL-7602/saved-plan-apply-hangs-with-auto-approve-flag
1 year ago
Daniel Banck 857d188308
Add resource identity message to protocol (TF-23178) (#36451)
1 year ago
Samsondeen 4161e88391
Continue test execution after an expected failure (#36447)
1 year ago
Mark DeCrane 50f2018c16 Move changelog entry to backport section, added an explanatory comment
1 year ago
Daniel Banck 6d7f801483
backends: Fix crash when interrupting during interactive prompt for values' (#36448)
1 year ago
Mark DeCrane 739c35cabb Add test
1 year ago
Mark DeCrane 8eff169fc7 Do the apply if there is a saved plan file, regardless of whether -auto-approve is set
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