use crate::types::*; pub fn test_bouncer() -> SojuBouncer { SojuBouncer { metadata: kube::api::ObjectMeta { name: Some("test-bouncer".to_string()), namespace: Some("test-ns".to_string()), uid: Some("test-uid".to_string()), ..Default::default() }, spec: SojuBouncerSpec { hostname: "irc.example.com".to_string(), hostname_cloak: Some("irc.example.com".to_string()), title: Some("Test Bouncer".to_string()), listeners: vec![ Listener { address: ":6697".to_string(), tls: true, websocket: false, }, Listener { address: ":6667".to_string(), tls: false, websocket: false, }, ], tls: Some(TlsSpec { issuer_ref: IssuerRef { name: "letsencrypt-prod".to_string(), kind: "ClusterIssuer".to_string(), }, dns_names: vec!["irc.example.com".to_string()], }), ..Default::default() }, status: None, } }