Skip to content

Commit

Permalink
fix: Patch groups test [DET-9473] (#845)
Browse files Browse the repository at this point in the history
* use correct mark
  • Loading branch information
mapmeld authored and rb-determined-ai committed Nov 2, 2023
1 parent 49d2e08 commit 8e44c6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions e2e_tests/tests/cluster/test_rbac.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,18 +624,16 @@ def test_group_access() -> None:
# create relevant workspace and project, with group having access
group_name = get_random_string()
workspace_name = get_random_string()
project_name = get_random_string()
with logged_in_user(ADMIN_CREDENTIALS):
det_cmd(["workspace", "create", workspace_name], check=True)
det_cmd(["project", "create", workspace_name, project_name], check=True)
det_cmd(["user-group", "create", group_name], check=True)
det_cmd(
["rbac", "assign-role", "WorkspaceAdmin", "-w", workspace_name, "-g", group_name],
check=True,
)

# create test user which cannot access workspace
creds1 = api_utils.create_test_user(True)
creds1 = api_utils.create_test_user()
with logged_in_user(creds1):
det_cmd_expect_error(
["workspace", "describe", workspace_name], "Did not find a workspace with name"
Expand All @@ -648,5 +646,3 @@ def test_group_access() -> None:
# with user now in group, access possible
with logged_in_user(creds1):
det_cmd(["workspace", "describe", workspace_name], check=True)
# test code from https://github.com/determined-ai/determined/pull/6503
det_cmd(["project", "list-experiments", workspace_name, project_name], check=True)

0 comments on commit 8e44c6c

Please sign in to comment.