diff --git a/tembo-operator/tests/integration_tests.rs b/tembo-operator/tests/integration_tests.rs index 8386faaeb..da2f0f0f9 100644 --- a/tembo-operator/tests/integration_tests.rs +++ b/tembo-operator/tests/integration_tests.rs @@ -2235,7 +2235,14 @@ mod test { "true" ); + let annotations = service + .metadata + .annotations + .as_ref() + .expect("Annotations should be present"); + let basedomain = std::env::var("DATA_PLANE_BASEDOMAIN").unwrap(); let expected_hostname = format!("dedicated-ro.{}.{}", namespace, basedomain); + assert_eq!( annotations .get("external-dns.alpha.kubernetes.io/hostname") @@ -2243,6 +2250,48 @@ mod test { &expected_hostname ); + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-internal") + .expect("AWS LB internal annotation should be present"), + &serde_json::Value::String("false".to_string()) + ); + + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-scheme") + .expect("AWS LB scheme annotation should be present"), + &serde_json::Value::String("internet-facing".to_string()) + ); + + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-nlb-target-type") + .expect("AWS LB NLB target type annotation should be present"), + &serde_json::Value::String("ip".to_string()) + ); + + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-type") + .expect("AWS LB type annotation should be present"), + &serde_json::Value::String("nlb-ip".to_string()) + ); + + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol") + .expect("AWS LB healthcheck protocol annotation should be present"), + &serde_json::Value::String("TCP".to_string()) + ); + + assert_eq!( + annotations + .get("service.beta.kubernetes.io/aws-load-balancer-healthcheck-port") + .expect("AWS LB healthcheck port annotation should be present"), + &serde_json::Value::String("5432".to_string()) + ); + // Disable dedicated networking let coredb_json = serde_json::json!({ "apiVersion": API_VERSION,