summaryrefslogtreecommitdiff
path: root/tests/authorization/check_service_test.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-27 12:45:13 -0600
committermo khan <mo@mokhan.ca>2025-06-27 12:45:13 -0600
commitf59c24589af439e0e22f43a2e42595cf88973ccf (patch)
tree463c52337d726056571d9dd6c085d6bc84075e22 /tests/authorization/check_service_test.rs
parentafd9729146a7e90bd97bf36f9d2081e29de9da35 (diff)
test: extract factory_bot factory for cedar authorizer
Diffstat (limited to 'tests/authorization/check_service_test.rs')
-rw-r--r--tests/authorization/check_service_test.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs
index c101850c..cddbb6b0 100644
--- a/tests/authorization/check_service_test.rs
+++ b/tests/authorization/check_service_test.rs
@@ -1,7 +1,6 @@
#[cfg(test)]
mod tests {
use crate::common::factory_bot::*;
- use authzd::CedarAuthorizer;
use authzd::CheckService;
use envoy_types::ext_authz::v3::pb::Authorization;
use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest;
@@ -9,9 +8,7 @@ mod tests {
use std::sync::Arc;
fn authorizer() -> Arc<dyn authzd::Authorizer + Send + Sync> {
- Arc::new(CedarAuthorizer::new_from(
- "/home/mokhax/src/gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/etc/authzd",
- ))
+ Arc::new(build_cedar_authorizer())
}
#[tokio::test]