Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Mar 28, 2024
1 parent 214c836 commit c65588c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class AclCheckSuite extends NexusSuite {
private val unauthorizedError = new IllegalArgumentException("The user has no access to this resource.")

test("Return the acls provided at initialization") {
aclCheck.authorizeFor(AclAddress.Root, events.read, Set(Anonymous)).assertEquals(true)
aclCheck.authorizeFor(AclAddress.Organization(org1), resources.read, Set(aliceUser)).assertEquals(true)
aclCheck.authorizeFor(AclAddress.Organization(org1), resources.write, Set(aliceUser)).assertEquals(true)
aclCheck.authorizeFor(AclAddress.Project(proj11), resources.read, Set(bobUser)).assertEquals(true)
aclCheck.authorizeFor(AclAddress.Root, events.read, Set(Anonymous)).assertEquals(true) >>
aclCheck.authorizeFor(AclAddress.Organization(org1), resources.read, Set(aliceUser)).assertEquals(true) >>
aclCheck.authorizeFor(AclAddress.Organization(org1), resources.write, Set(aliceUser)).assertEquals(true) >>
aclCheck.authorizeFor(AclAddress.Project(proj11), resources.read, Set(bobUser)).assertEquals(true)
}

List(alice, bob).foreach { caller =>
Expand Down

0 comments on commit c65588c

Please sign in to comment.