From 3d7745e618dfd824afb83d860abcc8af90b0bd14 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 9 Jul 2025 09:45:31 -0600 Subject: chore: start to provide entities to cedar --- tests/support/factory_bot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/support') diff --git a/tests/support/factory_bot.rs b/tests/support/factory_bot.rs index 007f0cb7..14969f87 100644 --- a/tests/support/factory_bot.rs +++ b/tests/support/factory_bot.rs @@ -36,10 +36,10 @@ pub fn build_headers(headers: Vec<(String, String)>) -> HashMap }) } -pub fn build_cedar_authorizer() -> authzd::CedarAuthorizer { +pub fn build_cedar_authorizer(entities: cedar_policy::Entities) -> authzd::CedarAuthorizer { let realpath = std::fs::canonicalize("./etc/authzd").unwrap(); let path = realpath.as_path(); - authzd::CedarAuthorizer::new_from(path, cedar_policy::Entities::empty()) + authzd::CedarAuthorizer::new_from(path, entities) } pub async fn build_channel(addr: SocketAddr) -> Channel { -- cgit v1.2.3