terraform/internal/stacks/stackmigrate
Sarah French 8503c45013
Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496)
* Fix S3 backend test affected by making the Workspaces method return errors via diagnostics

* Address diagnostics comparison issues in test by ensuring expected diagnostics are defined in the context of the config they're triggered by

* Fix failing test case `TestBackendConfig_EC2MetadataEndpoint/envvar_invalid_mode` by making `diagnosticBase` struct comparable

* Add compile-time checks that diagnostic types fulfil interfaces

* Stop diagnosticBase implementing ComparableDiagnostic, re-add S3-specific comparer code to s3 package

* Update tests to use the S3-specific comparer again

* Fix test case missed in refactoring

* Update the backend.Backend interface to use diagnostics as return value from StateMgr method

* Fix calls to `Fatalf`
2025-09-04 11:14:35 +01:00
..
components.go stacks migrate: allow resource mapping to include nested resources (#37060) 2025-05-16 10:10:47 +02:00
load.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
load_test.go fix test 2025-04-30 11:33:09 -04:00
meta.go break dependency of stack migrate on command Meta to prevent import cycles 2025-04-29 11:57:10 -04:00
meta_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
migrate.go migrate command for terraform stacks (#36482) 2025-03-19 10:39:50 +01:00
migrate_test.go stacks migrate: make diagnostics more relevant to operation (#37416) 2025-08-25 10:10:21 +02:00
resources.go stacks migrate: make diagnostics more relevant to operation (#37416) 2025-08-25 10:10:21 +02:00
testing.go migrate command for terraform stacks (#36482) 2025-03-19 10:39:50 +01:00