diff --git a/bundle/config/mutator/process_target_mode_test.go b/bundle/config/mutator/process_target_mode_test.go index db55e8edc..02da5f258 100644 --- a/bundle/config/mutator/process_target_mode_test.go +++ b/bundle/config/mutator/process_target_mode_test.go @@ -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" { diff --git a/integration/bundle/apps_test.go b/integration/bundle/apps_test.go index 97061e178..92e4d521f 100644 --- a/integration/bundle/apps_test.go +++ b/integration/bundle/apps_test.go @@ -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{