Merge feat/config/dynamic-config into main

This commit is contained in:
2026-06-11 12:47:59 +00:00
9 changed files with 205 additions and 41 deletions

View File

@@ -33,8 +33,9 @@ fn test_config_fixtures() {
#[tokio::test]
async fn test_health_check_local_port_returns_200() {
let (addr, handle) =
reverse_proxy::health::start_health_check_listener(0).await.unwrap();
let (addr, handle) = reverse_proxy::health::start_health_check_listener(0)
.await
.unwrap();
let client = reqwest::Client::new();
let resp = client
@@ -52,8 +53,9 @@ async fn test_health_check_local_port_returns_200() {
#[tokio::test]
async fn test_health_check_local_port_binds_localhost() {
let (addr, handle) =
reverse_proxy::health::start_health_check_listener(0).await.unwrap();
let (addr, handle) = reverse_proxy::health::start_health_check_listener(0)
.await
.unwrap();
assert!(addr.ip().is_loopback());
assert_eq!(addr.ip().to_string(), "127.0.0.1");
@@ -68,4 +70,4 @@ async fn test_health_check_disabled_when_port_zero() {
let (addr, handle) = result.unwrap();
assert_ne!(addr.port(), 0);
handle.abort();
}
}