Skip to content

Commit

Permalink
Unit tests for org service (#760)
Browse files Browse the repository at this point in the history
* Add mocks for org service

* add unit tests for get method in org service

* add tests for GetRaw method

* add test for default org state on creation

* add test for adding users to org and attaching org to platform
  • Loading branch information
anujk14 authored Sep 3, 2024
1 parent bfa5cf7 commit dc64188
Show file tree
Hide file tree
Showing 8 changed files with 1,540 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ packages:
github.com/raystack/frontier/core/project:
config:
dir: "core/project/mocks"
all: true
github.com/raystack/frontier/core/organization:
config:
dir: "core/organization/mocks"
all: true
109 changes: 109 additions & 0 deletions core/organization/mocks/authn_service.go

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

258 changes: 258 additions & 0 deletions core/organization/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 dc64188

Please sign in to comment.