fix(gateway): add new fields to test AppState and GatewayConfig constructors

Add device_registry, pending_pairings to test AppState instances and
pairing_dashboard to test GatewayConfig to fix compilation of tests
after the new pairing dashboard fields were introduced.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
argenis de la rosa 2026-03-17 11:10:55 -04:00 committed by Roman Tataurov
parent 8cf65ac197
commit 8df14402d2
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B
2 changed files with 19 additions and 0 deletions

View File

@ -9455,6 +9455,7 @@ channel_id = "C123"
idempotency_max_keys: 4096,
session_persistence: true,
session_ttl_hours: 0,
pairing_dashboard: PairingDashboardConfig::default(),
};
let toml_str = toml::to_string(&g).unwrap();
let parsed: GatewayConfig = toml::from_str(&toml_str).unwrap();

View File

@ -1891,6 +1891,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let response = handle_metrics(State(state)).await.into_response();
@ -1944,6 +1946,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let response = handle_metrics(State(state)).await.into_response();
@ -2321,6 +2325,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let mut headers = HeaderMap::new();
@ -2388,6 +2394,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let headers = HeaderMap::new();
@ -2467,6 +2475,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let response = handle_webhook(
@ -2518,6 +2528,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let mut headers = HeaderMap::new();
@ -2574,6 +2586,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let mut headers = HeaderMap::new();
@ -2635,6 +2649,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let response = Box::pin(handle_nextcloud_talk_webhook(
@ -2692,6 +2708,8 @@ mod tests {
shutdown_tx: tokio::sync::watch::channel(false).0,
node_registry: Arc::new(nodes::NodeRegistry::new(16)),
session_backend: None,
device_registry: None,
pending_pairings: None,
};
let mut headers = HeaderMap::new();