Skip to content

Commit

Permalink
Update AppServiceInterpSpec.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettn4 committed Dec 26, 2024
1 parent 3627fe6 commit 59e0cc6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3354,16 +3354,16 @@ class AppServiceInterpTest extends AnyFlatSpec with AppServiceInterpSpec with Le
val map1 = LeoAppServiceInterp.getAppSamPolicyMap(userEmail, leoEmail, None)
map1 should have size 1
map1 should contain key "creator"
map1("creator") shouldBe SamPolicyData(List(userEmail), List(AppRole.Creator.asString))
map1("creator") shouldBe SamPolicyData(List(userEmail, leoEmail), List(AppRole.Creator.asString))

val map2 = LeoAppServiceInterp.getAppSamPolicyMap(userEmail, leoEmail, Some(AppAccessScope.UserPrivate))
map2 should have size 1
map2 should contain key "creator"
map2("creator") shouldBe SamPolicyData(List(userEmail), List(AppRole.Creator.asString))
map2("creator") shouldBe SamPolicyData(List(userEmail, leoEmail), List(AppRole.Creator.asString))

val map3 = LeoAppServiceInterp.getAppSamPolicyMap(userEmail, leoEmail, Some(AppAccessScope.WorkspaceShared))
map3 should have size 1
map3 should contain key "owner"
map3("owner") shouldBe SamPolicyData(List(userEmail), List(SharedAppRole.Owner.asString))
map3("owner") shouldBe SamPolicyData(List(userEmail, leoEmail), List(SharedAppRole.Owner.asString))
}
}

0 comments on commit 59e0cc6

Please sign in to comment.