summaryrefslogtreecommitdiff
path: root/tests/support/factory_bot.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-09 09:45:31 -0600
committermo khan <mo@mokhan.ca>2025-07-09 09:45:31 -0600
commit3d7745e618dfd824afb83d860abcc8af90b0bd14 (patch)
treecb3887ec53825b2a93d7e708931aa8d63032dd1a /tests/support/factory_bot.rs
parent203ed8abfbf47c8a41a455c1f8baf7c53b7c51cc (diff)
chore: start to provide entities to cedar
Diffstat (limited to 'tests/support/factory_bot.rs')
-rw-r--r--tests/support/factory_bot.rs4
1 files changed, 2 insertions, 2 deletions
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<String, String>
})
}
-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 {