Skip to content

Commit

Permalink
Check non-existent groups in TestGetGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulik0 committed Sep 27, 2024
1 parent c0bcc53 commit a254ca4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/jimm/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,12 @@ func TestGetGroup(t *testing.T) {
gotGroupName, err := j.GetGroupByName(ctx, u, groupEntry.Name)
c.Assert(err, qt.IsNil)
c.Assert(gotGroupName, qt.DeepEquals, groupEntry)

_, err = j.GetGroupByUUID(ctx, u, "non-existent")
c.Assert(err, qt.Not(qt.IsNil))

_, err = j.GetGroupByName(ctx, u, "non-existent")
c.Assert(err, qt.Not(qt.IsNil))
}

func TestRemoveGroup(t *testing.T) {
Expand Down

0 comments on commit a254ca4

Please sign in to comment.