File tree Expand file tree Collapse file tree
src/azure-cli/azure/cli/command_modules/role/tests/latest Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments