Rename testBackendNoDefault
"NoDefault" is now ambiguous with tags, and it does not imply using a prefix.
This commit is contained in:
parent
6dcd0db265
commit
9bdf1d2579
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue