opentofu/internal/cloud
Nick Fagerlund cb26cbba22 Add tests for cloud.StateMgr() when TFC lacks local tf version
Alas, there's not a very good way to test the message we're supposed to print to
the console in this situation; we just don't appear to have a mock terminal that
the test can read from. But we can at least test that the function returns
without erroring under the exact conditions where it was erroring before.

Note that the behaviors of mc.Workspaces.Update and UpdateByID were already
starting to drift, so I consolidated their actual attribute update logic into a
helper function before they drifted much further.
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_apply_test.go Update HasResource to HasManagedResourceInstanceObjects 2021-10-28 19:29:15 -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_cli.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -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_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_context.go Remove prefix from the cloud backend config 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_plan.go Run apply -refresh-state instead of refresh 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_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_state.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_test.go Add tests for cloud.StateMgr() when TFC lacks local tf version 2021-10-28 19:29:18 -05:00
backend.go cloud.StateMgr(): Set terraform version AFTER creating workspace 2021-10-28 19:29:18 -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
cloud_variables.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 Add tests for cloud.StateMgr() when TFC lacks local tf version 2021-10-28 19:29:18 -05:00
versioning.go Temporarily skip API version checking 2021-10-28 19:29:16 -05:00