-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from permitio/gidi/per-10718-update-schema-of-…
…java-sdk update create user schema ti support new paramets - role_assigmetns list
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,14 +179,21 @@ public class RebacE2ETest extends PermitE2ETestBase { | |
new ShortDerivation("folder#commenter", "document#commenter", "parent"), | ||
new ShortDerivation("folder#editor", "document#editor", "parent") | ||
); | ||
|
||
final List<UserRoleCreate> roleAssignments = Arrays.asList( | ||
new UserRoleCreate("editor", "default") | ||
); | ||
|
||
final UserCreate USER_PERMIT = new UserCreate() | ||
.withKey("[email protected]") | ||
.withEmail("[email protected]") | ||
.withFirstName("Asaf") | ||
.withLastName("Cohen") | ||
.withRoleAssignments(roleAssignments) | ||
.withAttributes(new HashMap<String, Object>() {{ | ||
put("age", 35); | ||
}}); | ||
|
||
final UserCreate USER_CC = new UserCreate() | ||
.withKey("auth0|john") | ||
.withEmail("[email protected]") | ||
|