File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,24 @@ def test_projects_job_token_scope_groups_allowlist_contains_added_group_name(
7070 assert any (allowed .name == group_name for allowed in scope .groups_allowlist .list ())
7171
7272 group_to_add .delete ()
73+
74+
75+ def test_remove_group_by_id_from_projects_job_token_scope_groups_allowlist (gl , project ):
76+ scope = project .job_token_scope .get ()
77+
78+ group_to_add = gl .groups .create (
79+ {"name" : "delete_group" , "path" : "allowlisted-delete-test" }
80+ )
81+
82+ scope .groups_allowlist .create ({"target_group_id" : group_to_add .id })
83+
84+ scope .refresh ()
85+
86+ scope .allowlist .delete (group_to_add .id )
87+
88+ scope .refresh ()
89+ assert not any (
90+ allowed .id == group_to_add .id for allowed in scope .groups_allowlist .list ()
91+ )
92+
93+ group_to_add .delete ()
You can’t perform that action at this time.
0 commit comments