terraform/internal/cloud
Nick Fagerlund fabd8eb0b6 Fix broken rename behavior in tfe_client_mock.go
The delete + assign at the end of `Update` and `UpdateByID` are meant to handle
renaming a workspace — (remove old name), (insert new name).

However, `UpdateByID` was doing (remove new name), (insert new name) and leaving
the old name in place. This commit changes it to match `Update` by grabbing the
original name off the workspace object _before_ potentially renaming it.
2021-10-28 19:29:18 -05:00
..
e2e cloud: Fix E2E variables test 2021-10-28 19:29:17 -05:00
testdata Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend.go Restore API version checking, with internal usage accounted for 2021-10-28 19:29:18 -05:00
backend_apply.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
backend_apply_test.go Update HasResource to HasManagedResourceInstanceObjects 2021-10-28 19:29:15 -05:00
backend_cli.go Restore API version checking, with internal usage accounted for 2021-10-28 19:29:18 -05:00
backend_colorize.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_common.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
backend_context.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
backend_context_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_plan.go Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend_plan_test.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
backend_refresh_test.go Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend_state.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_state_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_test.go Restore API version checking, with internal usage accounted for 2021-10-28 19:29:18 -05:00
cloud_variables.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
cloud_variables_test.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
errors.go Simplify logic flow: everything is a constraint 2021-10-28 19:29:13 -05:00
remote_test.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
testing.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
tfe_client_mock.go Fix broken rename behavior in tfe_client_mock.go 2021-10-28 19:29:18 -05:00