Skip to content

Commit d7a1c55

Browse files
authored
Update integration test with new SPN ID (#4704)
## Changes Update test will new SPN ID with a short term fix. Added a new bug for fixing it later. TODO: http://github.com/databrickslabs/ucx/issues/4703
1 parent 51c39d2 commit d7a1c55

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/integration/hive_metastore/test_migrate.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,10 @@ def test_migrate_table_in_mount(
890890

891891

892892
def test_migrate_external_tables_with_spn_azure(
893-
ws: WorkspaceClient, prepared_principal_acl, make_cluster_permissions, make_cluster
893+
ws: WorkspaceClient,
894+
prepared_principal_acl,
895+
make_cluster_permissions,
896+
make_cluster,
894897
) -> None:
895898
if not ws.config.is_azure:
896899
pytest.skip("temporary: only works in azure test env")
@@ -900,7 +903,7 @@ def test_migrate_external_tables_with_spn_azure(
900903

901904
table_migrate = ctx.tables_migrator
902905

903-
spn_with_mount_access = "5a11359f-ba1f-483f-8e00-0fe55ec003ed"
906+
spn_with_mount_access = ws.dbutils.secrets.get("mounts", "spn_client_id")
904907
make_cluster_permissions(
905908
object_id=cluster.cluster_id,
906909
permission_level=PermissionLevel.CAN_ATTACH_TO,

0 commit comments

Comments
 (0)