diff --git a/internal/cloud/backend_apply_test.go b/internal/cloud/backend_apply_test.go index 8fa2d9758..090f767cc 100644 --- a/internal/cloud/backend_apply_test.go +++ b/internal/cloud/backend_apply_test.go @@ -135,7 +135,7 @@ func TestCloud_applyCanceled(t *testing.T) { } func TestCloud_applyWithoutPermissions(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() // Create a named workspace without permissions. @@ -175,7 +175,7 @@ func TestCloud_applyWithoutPermissions(t *testing.T) { } func TestCloud_applyWithVCS(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() // Create a named workspace with a VCS. @@ -891,7 +891,7 @@ func TestCloud_applyDiscardedExternally(t *testing.T) { } func TestCloud_applyWithAutoApply(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() // Create a named workspace that auto applies. @@ -1005,7 +1005,7 @@ func TestCloud_applyForceLocal(t *testing.T) { } func TestCloud_applyWorkspaceWithoutOperations(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() ctx := context.Background() diff --git a/internal/cloud/backend_plan_test.go b/internal/cloud/backend_plan_test.go index 45c1958b2..a0a7ced71 100644 --- a/internal/cloud/backend_plan_test.go +++ b/internal/cloud/backend_plan_test.go @@ -153,7 +153,7 @@ func TestCloud_planLongLine(t *testing.T) { } func TestCloud_planWithoutPermissions(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() // Create a named workspace without permissions. @@ -762,7 +762,7 @@ func TestCloud_planWithoutOperationsEntitlement(t *testing.T) { } func TestCloud_planWorkspaceWithoutOperations(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() ctx := context.Background() diff --git a/internal/cloud/backend_test.go b/internal/cloud/backend_test.go index c5115d200..5580cc925 100644 --- a/internal/cloud/backend_test.go +++ b/internal/cloud/backend_test.go @@ -33,8 +33,8 @@ func TestCloud_backendDefault(t *testing.T) { backend.TestBackendStateForceUnlock(t, b, b) } -func TestCloud_backendNoDefault(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) +func TestCloud_backendWithPrefix(t *testing.T) { + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() backend.TestBackendStates(t, b) @@ -573,7 +573,7 @@ func TestCloud_addAndRemoveWorkspacesDefault(t *testing.T) { } func TestCloud_addAndRemoveWorkspacesNoDefault(t *testing.T) { - b, bCleanup := testBackendNoDefault(t) + b, bCleanup := testBackendWithPrefix(t) defer bCleanup() states, err := b.Workspaces() diff --git a/internal/cloud/testing.go b/internal/cloud/testing.go index 726ba0595..c5bee1c02 100644 --- a/internal/cloud/testing.go +++ b/internal/cloud/testing.go @@ -78,7 +78,7 @@ func testBackendDefault(t *testing.T) (*Cloud, func()) { return testBackend(t, obj) } -func testBackendNoDefault(t *testing.T) (*Cloud, func()) { +func testBackendWithPrefix(t *testing.T) (*Cloud, func()) { obj := cty.ObjectVal(map[string]cty.Value{ "hostname": cty.NullVal(cty.String), "organization": cty.StringVal("hashicorp"),