Skip to content

Commit 86a73cf

Browse files
committed
add comment
1 parent b8a4855 commit 86a73cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/role/tests/latest

src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,14 +774,16 @@ def test_role_assignment_at_scope(self, resource_group):
774774
'--assignee-object-id {uami_object_id} --assignee-principal-type ServicePrincipal '
775775
'--role {role_reader_guid} --scope {rg_id}')
776776
# Verify atScope() is not bound to scope,
777-
# and when atScope() is not specified, scope can be used with `principalId eq '{}'` filter
777+
# and when atScope() is not specified, scope can be used with `principalId eq '{}'` filter.
778+
# At subscription scope
778779
self.cmd('role assignment list --scope {sub_id} --at-scope false '
779780
'--assignee-object-id {uami_object_id} '
780781
'--fill-role-definition-name false --fill-principal-name false',
781782
checks=[
782783
self.check("length([])", 1),
783784
self.check("[0].scope", '{rg_id}'),
784785
])
786+
# At resource group scope
785787
self.cmd('role assignment list --scope {rg_id} --at-scope false '
786788
'--assignee-object-id {uami_object_id} '
787789
'--fill-role-definition-name false --fill-principal-name false',

0 commit comments

Comments
 (0)