diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-14 14:39:05 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-14 14:39:05 -0600 |
| commit | 73e7880ca39983a386955b783e1a73fd947b2534 (patch) | |
| tree | 9a06a45c9b18d7a148e72efb65a882afd25cb36b | |
| parent | debf8403c595c98213bf17913824b081262c15e2 (diff) | |
test: update integration test to test ext_authz service
| -rw-r--r-- | Cargo.lock | 39 | ||||
| -rw-r--r-- | tests/authorization/server_test.rs | 18 |
2 files changed, 9 insertions, 48 deletions
@@ -168,8 +168,6 @@ dependencies = [ "tokio-test", "tonic", "tonic-build", - "tonic-health", - "tonic-reflection", "tracing", "tracing-subscriber", "urlencoding", @@ -1697,7 +1695,7 @@ dependencies = [ "petgraph 0.6.5", "prettyplease", "prost 0.12.6", - "prost-types 0.12.6", + "prost-types", "regex", "syn", "tempfile", @@ -1739,15 +1737,6 @@ dependencies = [ ] [[package]] -name = "prost-types" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" -dependencies = [ - "prost 0.13.5", -] - -[[package]] name = "psm" version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2428,7 +2417,6 @@ dependencies = [ "futures-core", "pin-project-lite", "tokio", - "tokio-util", ] [[package]] @@ -2500,31 +2488,6 @@ dependencies = [ ] [[package]] -name = "tonic-health" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb87334d340313fefa513b6e60794d44a86d5f039b523229c99c323e4e19ca4b" -dependencies = [ - "prost 0.13.5", - "tokio", - "tokio-stream", - "tonic", -] - -[[package]] -name = "tonic-reflection" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9687bd5bfeafebdded2356950f278bba8226f0b32109537c4253406e09aafe1" -dependencies = [ - "prost 0.13.5", - "prost-types 0.13.5", - "tokio", - "tokio-stream", - "tonic", -] - -[[package]] name = "tower" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/tests/authorization/server_test.rs b/tests/authorization/server_test.rs index fe8c8a73..5a92dcff 100644 --- a/tests/authorization/server_test.rs +++ b/tests/authorization/server_test.rs @@ -27,21 +27,19 @@ mod tests { } #[tokio::test] - async fn test_health_check_service() { + async fn test_health_ext_authz_service() { let (addr, server) = start_server().await; - let mut client = - build_rpc_client(addr, tonic_health::pb::health_client::HealthClient::new).await; - let request = tonic::Request::new(tonic_health::pb::HealthCheckRequest { - service: String::new(), - }); + let mut client = build_rpc_client( + addr, + envoy_types::pb::envoy::service::auth::v3::authorization_client::AuthorizationClient::new, + ) + .await; + + let request = tonic::Request::new(envoy_types::ext_authz::v3::pb::CheckRequest::default()); let response = client.check(request).await; assert!(response.is_ok()); - assert_eq!( - response.unwrap().into_inner().status(), - tonic_health::pb::health_check_response::ServingStatus::Serving - ); server.abort(); } |
