Skip to content

Commit

Permalink
Merge pull request #1243 from pkulik0/CSS-6730-ofga-tests
Browse files Browse the repository at this point in the history
CSS 6730 - add ofga model tests
  • Loading branch information
pkulik0 authored Jun 21, 2024
2 parents 9f83aa7 + 2bcf361 commit d77ce65
Show file tree
Hide file tree
Showing 3 changed files with 423 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ jobs:
- name: Start test environment
run: docker compose up -d --wait

- name: Run OpenFGA authorisation model tests
uses: openfga/[email protected]
with:
store-file-path: ./openfga/tests.fga.yaml

- name: Build and Test
run: go test -mod readonly ./... -timeout 1h -cover
env:
Expand Down
2 changes: 1 addition & 1 deletion openfga/authorisation_model.fga
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ type user

type serviceaccount
relations
define administator: [user, user:*, group#member]
define administrator: [user, user:*, group#member]
Loading

0 comments on commit d77ce65

Please sign in to comment.