From c0a27c2aad4293e885fae65e1fcc74653ecbdc58 Mon Sep 17 00:00:00 2001 From: Matthew Grossman Date: Wed, 4 Nov 2026 14:08:06 +0100 Subject: [PATCH] test(testkit): name unsupported gateway auth modes in the error Co-authored-by: Evan Lezar Signed-off-by: Evan Lezar --- tests/testkit/testkit/src/gateway.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/testkit/testkit/src/gateway.rs b/tests/testkit/testkit/src/gateway.rs index a3c27341a2..ee3e333500 100644 --- a/tests/testkit/testkit/src/gateway.rs +++ b/tests/testkit/testkit/src/gateway.rs @@ -243,6 +243,23 @@ mod tests { use super::Gateway; + #[test] + fn unsupported_auth_modes_are_named() { + let error = Gateway::registered( + "edge".to_string(), + "https://gateway.example".to_string(), + Some("oidc"), + "/nonexistent".into(), + "default".to_string(), + false, + ) + .expect_err("OIDC is not supported"); + assert!( + error.to_string().contains("gateway edge uses oidc auth"), + "{error}" + ); + } + /// A peer that accepts connections and never answers must not hang the /// readiness wait: the timeout covers the connect and health calls too. #[tokio::test]