Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/testkit/testkit/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading