diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 14:35:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 14:35:13 -0600 |
| commit | 8514fe5d2771f063f10434922d1482d7e193f47f (patch) | |
| tree | ddfc26594c5fade99a0f0b12419a9f792ad99bb0 /tests | |
| parent | d2b6a63d83877ff1efd8437be0bf662e9d65815a (diff) | |
fix: the buf tonic plugin is not compatible with newer versions of tonic
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/authorization/check_service_test.rs | 2 | ||||
| -rw-r--r-- | tests/authorization/server_test.rs | 3 | ||||
| -rw-r--r-- | tests/authorization/spice/authorizer_test.rs | 2 | ||||
| -rw-r--r-- | tests/support/factory_bot.rs | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs index 7b4b7cd1..30450134 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::pb::envoy::service::auth::v3::authorization_server::Authorization; use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest; + use envoy_types::pb::envoy::service::auth::v3::authorization_server::Authorization; use std::sync::Arc; fn subject() -> CheckService { diff --git a/tests/authorization/server_test.rs b/tests/authorization/server_test.rs index 5d730063..c0242958 100644 --- a/tests/authorization/server_test.rs +++ b/tests/authorization/server_test.rs @@ -36,7 +36,8 @@ mod tests { ) .await; - let request = tonic::Request::new(envoy_types::pb::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/authorization/spice/authorizer_test.rs b/tests/authorization/spice/authorizer_test.rs index d4fcb6ca..03e3ac44 100644 --- a/tests/authorization/spice/authorizer_test.rs +++ b/tests/authorization/spice/authorizer_test.rs @@ -6,7 +6,7 @@ mod tests { fn subject() -> authzd::authorization::spice::Authorizer { common::setup(); - authzd::authorization::spice::Authorizer::new() + authzd::authorization::spice::Authorizer::default() } #[test] diff --git a/tests/support/factory_bot.rs b/tests/support/factory_bot.rs index 2947d2d2..7ebe75ec 100644 --- a/tests/support/factory_bot.rs +++ b/tests/support/factory_bot.rs @@ -1,5 +1,5 @@ -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::CheckRequest; use envoy_types::pb::envoy::service::auth::v3::attribute_context::{HttpRequest, Request}; use std::collections::HashMap; use std::net::SocketAddr; |
