diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 13:08:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 13:08:24 -0600 |
| commit | 7db4022711af526ed7606fef65d3ffa0017e8b25 (patch) | |
| tree | da356c0566c56fccb8024b9859936d03e192036c /tests | |
| parent | 7bb8655a150599ce4e5c45bf9f1eb5420345e55e (diff) | |
chore: use bug to generate envoy types
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/authorization/cedar_authorizer_test.rs | 2 | ||||
| -rw-r--r-- | tests/authorization/check_service_test.rs | 4 | ||||
| -rw-r--r-- | tests/authorization/server_test.rs | 4 | ||||
| -rw-r--r-- | tests/support/factory_bot.rs | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs index 4938033c..03e02d01 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 envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest; + use crate::rpc::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 3db0ec9e..009b3110 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 envoy_types::ext_authz::v3::pb::Authorization; - use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest; + use crate::rpc::envoy::service::auth::v3::authorization_server::Authorization; + use crate::rpc::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 5a92dcff..d000fab7 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, - envoy_types::pb::envoy::service::auth::v3::authorization_client::AuthorizationClient::new, + crate::rpc::envoy::service::auth::v3::authorization_client::AuthorizationClient::new, ) .await; - let request = tonic::Request::new(envoy_types::ext_authz::v3::pb::CheckRequest::default()); + let request = tonic::Request::new(crate::rpc::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 08deaa15..b6664cca 100644 --- a/tests/support/factory_bot.rs +++ b/tests/support/factory_bot.rs @@ -1,6 +1,6 @@ -use envoy_types::ext_authz::v3::pb::CheckRequest; -use envoy_types::pb::envoy::service::auth::v3::AttributeContext; -use envoy_types::pb::envoy::service::auth::v3::attribute_context::{HttpRequest, Request}; +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 std::collections::HashMap; use std::net::SocketAddr; use std::str::FromStr; |
