From 1eb73c625cc85ee19ccd1aa1545331749d7b9dcf Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 18 Jun 2026 15:36:28 +0200 Subject: [PATCH] acc: run volumes/recreate, jobs/shared-root-path, permissions/dashboards/create locally These three acceptance tests were marked Local = false (cloud-only) but the in-process testserver already models everything they exercise: - volumes/recreate and jobs/shared-root-path pass against the fake unchanged; their behavior is fully modeled (UC volumes/grants/schemas, and a client-side shared-root-path warning respectively). - permissions/dashboards/create only diverged on the auto-added CAN_MANAGE ACL identity (service_principal_name on cloud vs user_name locally). Setting IsServicePrincipal = true makes the local deploy identity an SP so the golden matches. Each test keeps Cloud = true so it still runs in the nightly cloud suite. Co-authored-by: Isaac --- .../bundle/resources/jobs/shared-root-path/out.test.toml | 2 +- acceptance/bundle/resources/jobs/shared-root-path/test.toml | 2 +- .../resources/permissions/dashboards/create/out.test.toml | 2 +- .../resources/permissions/dashboards/create/test.toml | 6 +++++- acceptance/bundle/resources/volumes/recreate/out.test.toml | 2 +- acceptance/bundle/resources/volumes/recreate/test.toml | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/acceptance/bundle/resources/jobs/shared-root-path/out.test.toml b/acceptance/bundle/resources/jobs/shared-root-path/out.test.toml index e5a4c7283a6..5ad0addb75e 100644 --- a/acceptance/bundle/resources/jobs/shared-root-path/out.test.toml +++ b/acceptance/bundle/resources/jobs/shared-root-path/out.test.toml @@ -1,4 +1,4 @@ -Local = false +Local = true Cloud = true RunsOnDbr = true EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"] diff --git a/acceptance/bundle/resources/jobs/shared-root-path/test.toml b/acceptance/bundle/resources/jobs/shared-root-path/test.toml index aec93687714..c469454658b 100644 --- a/acceptance/bundle/resources/jobs/shared-root-path/test.toml +++ b/acceptance/bundle/resources/jobs/shared-root-path/test.toml @@ -1,4 +1,4 @@ -Local = false +Local = true Cloud = true RecordRequests = false RunsOnDbr = true diff --git a/acceptance/bundle/resources/permissions/dashboards/create/out.test.toml b/acceptance/bundle/resources/permissions/dashboards/create/out.test.toml index 2cae6e8241f..7845c49f70c 100644 --- a/acceptance/bundle/resources/permissions/dashboards/create/out.test.toml +++ b/acceptance/bundle/resources/permissions/dashboards/create/out.test.toml @@ -1,4 +1,4 @@ -Local = false +Local = true Cloud = true RequiresWarehouse = true CloudEnvs.gcp = false diff --git a/acceptance/bundle/resources/permissions/dashboards/create/test.toml b/acceptance/bundle/resources/permissions/dashboards/create/test.toml index c6ec6c1c835..4f13462bdf8 100644 --- a/acceptance/bundle/resources/permissions/dashboards/create/test.toml +++ b/acceptance/bundle/resources/permissions/dashboards/create/test.toml @@ -1,7 +1,11 @@ -Local = false +Local = true RequiresWarehouse = true Cloud = true +# Force the local deploy identity to a service principal so the auto-added +# CAN_MANAGE ACL serializes as service_principal_name, matching the cloud golden. +IsServicePrincipal = true + # The current user on GCP is a user and not a SP. This causes different permissions to be set. # Thus we skip this test on GCP. CloudEnvs.gcp = false diff --git a/acceptance/bundle/resources/volumes/recreate/out.test.toml b/acceptance/bundle/resources/volumes/recreate/out.test.toml index 30aca39e5f2..6e3397efe53 100644 --- a/acceptance/bundle/resources/volumes/recreate/out.test.toml +++ b/acceptance/bundle/resources/volumes/recreate/out.test.toml @@ -1,4 +1,4 @@ -Local = false +Local = true Cloud = true RequiresUnityCatalog = true RunsOnDbr = true diff --git a/acceptance/bundle/resources/volumes/recreate/test.toml b/acceptance/bundle/resources/volumes/recreate/test.toml index d02128672ce..05c6bbc20db 100644 --- a/acceptance/bundle/resources/volumes/recreate/test.toml +++ b/acceptance/bundle/resources/volumes/recreate/test.toml @@ -1,4 +1,4 @@ -Local = false +Local = true Cloud = true RecordRequests = false RunsOnDbr = true