Skip to content

Commit f321e41

Browse files
authored
Assert if group name is in cluster policy (#1665)
## Changes Assert if group name is in cluster policy ### Linked issues Does not resolve the issue, but asserts the key to avoid the key error in #1616 ### Functionality - [ ] added relevant user documentation - [ ] added new CLI command - [ ] modified existing command: `databricks labs ucx ...` - [ ] added a new workflow - [ ] modified existing workflow: `...` - [ ] added a new table - [ ] modified existing table: `...` ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] manually tested - [ ] added unit tests - [ ] added integration tests - [ ] verified on staging environment (screenshot attached)
1 parent 013983d commit f321e41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/test_ext_hms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,5 @@ def test_running_real_assessment_job_ext_hms(
170170
assert ext_hms_ctx.deployed_workflows.validate_step("assessment")
171171

172172
after = ext_hms_ctx.generic_permissions_support.load_as_dict("cluster-policies", cluster_policy.policy_id)
173+
assert ws_group_a.display_name in after, f"Group {ws_group_a.display_name} not found in cluster policy"
173174
assert after[ws_group_a.display_name] == PermissionLevel.CAN_USE

0 commit comments

Comments
 (0)