summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-16 14:09:57 -0600
committermo khan <mo@mokhan.ca>2025-07-16 14:09:57 -0600
commit034cb934375e789a54a22c34b37426ffe9affd4b (patch)
treeed82d15f8c9dbad06b9932fc43acafae531b94f8 /tests
parentaadfbeb39d0ac5ccb1a19899d7680b1c96b1a6cf (diff)
fix: revert back to envoy-types crate
Diffstat (limited to 'tests')
-rw-r--r--tests/authorization/cedar_authorizer_test.rs2
-rw-r--r--tests/authorization/check_service_test.rs4
-rw-r--r--tests/authorization/server_test.rs4
-rw-r--r--tests/support/factory_bot.rs6
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs
index 03e02d01..4938033c 100644
--- a/tests/authorization/cedar_authorizer_test.rs
+++ b/tests/authorization/cedar_authorizer_test.rs
@@ -3,7 +3,7 @@ mod tests {
use crate::support::factory_bot::*;
use crate::support::*;
use authzd::Authorizer;
- use crate::rpc::envoy::service::auth::v3::attribute_context::HttpRequest;
+ use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest;
use std::collections::HashMap;
fn subject() -> authzd::authorization::cedar::Authorizer {
diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs
index 009b3110..7b4b7cd1 100644
--- a/tests/authorization/check_service_test.rs
+++ b/tests/authorization/check_service_test.rs
@@ -2,8 +2,8 @@
mod tests {
use crate::support::factory_bot::*;
use authzd::CheckService;
- use crate::rpc::envoy::service::auth::v3::authorization_server::Authorization;
- use crate::rpc::envoy::service::auth::v3::attribute_context::HttpRequest;
+ use envoy_types::pb::envoy::service::auth::v3::authorization_server::Authorization;
+ use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest;
use std::sync::Arc;
fn subject() -> CheckService {
diff --git a/tests/authorization/server_test.rs b/tests/authorization/server_test.rs
index d000fab7..5d730063 100644
--- a/tests/authorization/server_test.rs
+++ b/tests/authorization/server_test.rs
@@ -32,11 +32,11 @@ mod tests {
let mut client = build_rpc_client(
addr,
- crate::rpc::envoy::service::auth::v3::authorization_client::AuthorizationClient::new,
+ envoy_types::pb::envoy::service::auth::v3::authorization_client::AuthorizationClient::new,
)
.await;
- let request = tonic::Request::new(crate::rpc::envoy::service::auth::v3::CheckRequest::default());
+ let request = tonic::Request::new(envoy_types::pb::envoy::service::auth::v3::CheckRequest::default());
let response = client.check(request).await;
assert!(response.is_ok());
diff --git a/tests/support/factory_bot.rs b/tests/support/factory_bot.rs
index b6664cca..2947d2d2 100644
--- a/tests/support/factory_bot.rs
+++ b/tests/support/factory_bot.rs
@@ -1,6 +1,6 @@
-use crate::rpc::envoy::service::auth::v3::CheckRequest;
-use crate::rpc::envoy::service::auth::v3::AttributeContext;
-use crate::rpc::envoy::service::auth::v3::attribute_context::{HttpRequest, Request};
+use envoy_types::pb::envoy::service::auth::v3::CheckRequest;
+use envoy_types::pb::envoy::service::auth::v3::AttributeContext;
+use envoy_types::pb::envoy::service::auth::v3::attribute_context::{HttpRequest, Request};
use std::collections::HashMap;
use std::net::SocketAddr;
use std::str::FromStr;