Skip to content

Commit

Permalink
Unit tests for group service (#742)
Browse files Browse the repository at this point in the history
* add mocks for group service dependencies

* added test for create method

* add tests for getByID and getByIDs

* add tests for other group service methods
  • Loading branch information
anujk14 authored Aug 26, 2024
1 parent 3e6a680 commit b101b8a
Show file tree
Hide file tree
Showing 6 changed files with 1,441 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ packages:
config:
dir: "core/policy/mocks"
all: true
github.com/raystack/frontier/core/group:
config:
dir: "core/group/mocks"
all: true
github.com/raystack/frontier/core/authenticate/session:
config:
dir: "core/authenticate/session/mocks"
Expand Down
109 changes: 109 additions & 0 deletions core/group/mocks/authn_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

260 changes: 260 additions & 0 deletions core/group/mocks/policy_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b101b8a

Please sign in to comment.