Skip to content

Commit 54d9eec

Browse files
authored
Fix failing test test_migrate_managed_tables_with_acl (#2500)
Verify last added privilege. CI failed before: https://github.com/databrickslabs/ucx/actions/runs/10596452524/job/29364449153?pr=2499
1 parent 9adce8c commit 54d9eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/hive_metastore/test_migrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ def test_migrate_managed_tables_with_acl(ws, sql_backend, runtime_ctx, make_cata
535535
target_table_grants = ws.grants.get(SecurableType.TABLE, f"{dst_schema.full_name}.{src_managed_table.name}")
536536
assert target_table_properties["upgraded_from"] == src_managed_table.full_name
537537
assert target_table_properties[Table.UPGRADED_FROM_WS_PARAM] == str(ws.get_workspace_id())
538-
assert target_table_grants.privilege_assignments[0].principal == user.user_name
539-
assert target_table_grants.privilege_assignments[0].privileges == [Privilege.MODIFY, Privilege.SELECT]
538+
assert target_table_grants.privilege_assignments[-1].principal == user.user_name
539+
assert target_table_grants.privilege_assignments[-1].privileges == [Privilege.MODIFY, Privilege.SELECT]
540540

541541

542542
@retried(on=[NotFound], timeout=timedelta(minutes=3))

0 commit comments

Comments
 (0)