Skip to content

Commit bfa62c0

Browse files
committed
Added checks for group deletion to UserGroupDatabaseTest
Request: MO Change-Id: Ic63d7481472ef57e0816c499984f08715887c26c
1 parent 8ab588f commit bfa62c0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

minion/src/test/java/io/bdeploy/minion/user/UserGroupDatabaseTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ void testGroupScopedPermission(MinionRoot root) {
6666

6767
// ensure that removing the user from a group that they are not in doesn't break
6868
users.removeUserFromGroup(g.id, userName);
69+
70+
// test user group deletion
71+
groups.deleteUserGroup(g.id);
72+
assertNull(groups.getUserGroup(g.id));
6973
}
7074

7175
@Test
@@ -103,6 +107,10 @@ void testGroupGlobalPermission(MinionRoot root) {
103107

104108
// ensure that removing the user from a group that they are not in doesn't break
105109
users.removeUserFromGroup(g.id, userName);
110+
111+
// test user group deletion
112+
groups.deleteUserGroup(g.id);
113+
assertNull(groups.getUserGroup(g.id));
106114
}
107115

108116
@Test

0 commit comments

Comments
 (0)