Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
Change-Id: Ib6281cb3dfdc917ecac0c9450f7919e3898f73db
  • Loading branch information
javeme committed Feb 23, 2021
1 parent aa43d99 commit 227e899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ public static String roleFor(String owner, HugePermission perm) {
* Construct required permission such as:
* $owner=graph1 $action=read
* (means required read permission of any one resource)
* maybe also support:
*
* In the future maybe also support:
* $owner=graph1 $action=vertex_read
*/
return String.format("%s=%s %s=%s", KEY_OWNER, owner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ public void testResourceType() {
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.EDGE));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.VERTEX_LABEL));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.META));
Assert.assertTrue(ResourceType.ALL.match(ResourceType.ALL));;
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.ALL));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.GRANT));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.USER_GROUP));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.TARGET));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.METRICS));
Assert.assertFalse(ResourceType.ALL.match(ResourceType.ROOT));
Assert.assertTrue(ResourceType.ROOT.match(ResourceType.ROOT));

// ALL
Assert.assertTrue(ResourceType.ALL.match(ResourceType.NONE));
Expand Down

0 comments on commit 227e899

Please sign in to comment.