fixes after rebase

This commit is contained in:
Andrew Nester 2024-12-16 13:15:27 +01:00
parent 298d745fb5
commit b6af5b44df
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
2 changed files with 3 additions and 2 deletions

View File

@ -426,6 +426,7 @@ func TestAllNonUcResourcesAreRenamed(t *testing.T) {
for _, key := range field.MapKeys() {
resource := field.MapIndex(key)
nameField := resource.Elem().FieldByName("Name")
resourceType := resources.Type().Field(i).Name
// Skip apps, as they are not renamed
if resourceType == "Apps" {

View File

@ -5,8 +5,8 @@ import (
"io"
"testing"
"github.com/databricks/cli/internal"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"
"github.com/databricks/databricks-sdk-go/service/apps"
"github.com/google/uuid"
@ -17,7 +17,7 @@ func TestAccDeployBundleWithApp(t *testing.T) {
ctx, wt := acc.WorkspaceTest(t)
uniqueId := uuid.New().String()
appId := fmt.Sprintf("app-%s", uuid.New().String()[0:8])
nodeTypeId := internal.GetNodeTypeId(env.Get(ctx, "CLOUD_ENV"))
nodeTypeId := testutil.GetCloud(t).NodeTypeID()
instancePoolId := env.Get(ctx, "TEST_INSTANCE_POOL_ID")
root, err := initTestTemplate(t, ctx, "apps", map[string]any{