Skip to content

Commit

Permalink
Role service tests (#793)
Browse files Browse the repository at this point in the history
* setup mock and test

* unit tests for role service get and list methods

* add tests for role upsert
  • Loading branch information
anujk14 authored Oct 14, 2024
1 parent 6f284e5 commit 9194efb
Show file tree
Hide file tree
Showing 5 changed files with 862 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ packages:
github.com/raystack/frontier/core/permission:
config:
dir: "core/permission/mocks"
all: true
github.com/raystack/frontier/core/role:
config:
dir: "core/role/mocks"
all: true
94 changes: 94 additions & 0 deletions core/role/mocks/permission_service.go

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

141 changes: 141 additions & 0 deletions core/role/mocks/relation_service.go

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

Loading

0 comments on commit 9194efb

Please sign in to comment.