-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: parse role tags * chore: move ToJAASTag test to internal/jimm The ToJAASTag method was moved from the jujuapi to the jimm a while back but the test was not moved. Additionally adds tests for roles.
- Loading branch information
Showing
8 changed files
with
182 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ func TestListRelationshipTuples(t *testing.T) { | |
u := openfga.NewUser(&dbmodel.Identity{Name: "[email protected]"}, ofgaClient) | ||
u.JimmAdmin = true | ||
|
||
user, _, controller, model, _, _, _ := createTestControllerEnvironment(ctx, c, j.Database) | ||
user, _, controller, model, _, _, _, _ := createTestControllerEnvironment(ctx, c, j.Database) | ||
c.Assert(err, qt.IsNil) | ||
|
||
err = j.AddRelation(ctx, u, []apiparams.RelationshipTuple{ | ||
|
@@ -192,7 +192,7 @@ func TestListObjectRelations(t *testing.T) { | |
u := openfga.NewUser(&dbmodel.Identity{Name: "[email protected]"}, ofgaClient) | ||
u.JimmAdmin = true | ||
|
||
user, group, controller, model, _, cloud, _ := createTestControllerEnvironment(ctx, c, j.Database) | ||
user, group, controller, model, _, cloud, _, _ := createTestControllerEnvironment(ctx, c, j.Database) | ||
c.Assert(err, qt.IsNil) | ||
|
||
err = j.AddRelation(ctx, u, []apiparams.RelationshipTuple{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.