Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def test_role_assignment_handle_conflicted_assignments(self, resource_group):
self.cmd('ad user create --display-name tester123 --password Test123456789 --user-principal-name {upn}')
time.sleep(15) # By-design, it takes some time for RBAC system propagated with graph object change

base_dir = os.curdir
base_dir = os.path.abspath(os.curdir)

try:
temp_dir = self.create_temp_dir()
os.chdir(temp_dir)
Expand All @@ -368,7 +369,7 @@ def test_role_assignment_handle_conflicted_assignments(self, resource_group):
self.cmd('role assignment list --assignee {upn} --role reader --scope ' + rg_id, checks=self.check('length([])', 0))
finally:
self.cmd('configure --default group="" --scope local')
os.chdir(os.path.basename(base_dir))
os.chdir(base_dir)
self.cmd('ad user delete --upn-or-object-id {upn}')

@ResourceGroupPreparer(name_prefix='cli_role_assign')
Expand Down