refactor more

This commit is contained in:
Adil Hafeez 2026-03-12 13:54:23 -07:00
parent 8c71acfc76
commit efa677683a
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
5 changed files with 61 additions and 41 deletions

View file

@ -17,7 +17,7 @@ use hyper::StatusCode;
#[cfg(test)]
mod tests {
use super::*;
use common::configuration::{Agent, AgentFilterChain, Listener};
use common::configuration::{Agent, AgentFilterChain, Listener, ListenerType};
fn create_test_orchestrator_service() -> Arc<OrchestratorService> {
Arc::new(OrchestratorService::new(
@ -72,12 +72,12 @@ mod tests {
};
let listener = Listener {
listener_type: ListenerType::Agent,
name: "test-listener".to_string(),
agents: Some(vec![agent_pipeline.clone()]),
filter_chain: None,
port: 8080,
router: None,
filter_agents: None,
};
let listeners = vec![listener];