summaryrefslogtreecommitdiff
path: root/tests/authorization
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-09 16:28:12 -0600
committermo khan <mo@mokhan.ca>2025-07-09 16:28:12 -0600
commit5abf4b1db876161ef028398c9d600dd5ab9f6f6e (patch)
tree8f468e35ef7bc904f571e84e08fc4a4db8e5c5e3 /tests/authorization
parentf60bebf044f3614f5675152718ecebe81bd8459a (diff)
test: extract common test setup to initialize logger
Diffstat (limited to 'tests/authorization')
-rw-r--r--tests/authorization/cedar_authorizer_test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs
index 4a319c09..27b676ba 100644
--- a/tests/authorization/cedar_authorizer_test.rs
+++ b/tests/authorization/cedar_authorizer_test.rs
@@ -1,12 +1,14 @@
#[cfg(test)]
mod tests {
use crate::support::factory_bot::*;
+ use crate::support::*;
use authzd::Authorizer;
use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest;
use std::collections::HashMap;
use std::str::FromStr;
fn subject() -> authzd::CedarAuthorizer {
+ common::setup();
subject_with(cedar_policy::Entities::empty())
}