terraform/internal/backend
Sarah French 125cf53470
Add acceptance and internal tests for gcs backend, add some test helper functions (#35026)
* Add TF_ACC checks in gcs tests, separate from the bucket setup logic

* Add tests for handling of `encryption_key` and `kms_encryption_key`

* Refactor `setupBackend` to take config as an argument

* Add test that asserts that setting credentials to `""` in the config doesn't affect use of ENV-supplied credentials

* Move non-acceptance tests into separate test file

* Add comment about `getWantValue`

* Fix use of t.Parallel

* Make `preCheckTestAcc` skip tests, so that checks can pass in hashicorp/terraform PRs

* Add precheck for credentials in test environment. Skip if missing, to let checks pass in hashicorp/terraform repo.

* Update new test to use precheck functions
Move `TestBackendEncryptionKeyEmptyConflict` test to internal test file

* Address feedback about how expected encryption key is supplied to test cases

* Change test case

* Address missing return
2024-07-12 17:38:50 +01:00
..
backendbase backendbase: Preserve unset arguments as null when not set by env 2024-04-25 10:15:34 -07:00
backendrun Define StatePersistInterval as command meta field 2024-05-17 14:16:24 -04:00
init Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
local command: "terraform apply" accepts variable values with saved plan 2024-06-05 09:09:30 -07:00
remote Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
remote-state Add acceptance and internal tests for gcs backend, add some test helper functions (#35026) 2024-07-12 17:38:50 +01:00
backend.go gcs: Adopt the "ReadPathOrContents" helper function 2024-03-13 10:23:40 -07:00
testing.go configtesting: Separate package for the SynthBody helper 2024-03-14 09:58:30 -07:00