Class BrokerFqdnBuilderHelperTest

java.lang.Object
org.apache.kafka.common.network.BrokerFqdnBuilderHelperTest

public class BrokerFqdnBuilderHelperTest extends Object
  • Constructor Details

    • BrokerFqdnBuilderHelperTest

      public BrokerFqdnBuilderHelperTest()
  • Method Details

    • testIsUnexpectedGatewayZone_bothNull

      @Test public void testIsUnexpectedGatewayZone_bothNull()
      When both TLVs are missing the broker has no information either way; nothing to flag.
    • testIsUnexpectedGatewayZone_gatewayZonesAbsent

      @Test public void testIsUnexpectedGatewayZone_gatewayZonesAbsent()
      gatewayZones absent (null or empty) is expected for non-XENI ingress paths (most commonly Public zonal connections) that don't emit the GATEWAY_ZONES TLV. Should not warn even when an AZ id is present.
    • testIsUnexpectedGatewayZone_gatewayZoneIdAbsent

      @Test public void testIsUnexpectedGatewayZone_gatewayZoneIdAbsent()
      gatewayZoneId absent/empty is expected for regional bootstrap templates (e.g. AccessPointRegionalV1) whose suffix has no $zoneId. Should not warn even when the gateway zone set is present.
    • testIsUnexpectedGatewayZone_zoneIdInSet

      @Test public void testIsUnexpectedGatewayZone_zoneIdInSet()
      Healthy zonal connection: the AZ id belongs to the advertised gateway zone set. No warn.
    • testIsUnexpectedGatewayZone_zoneIdNotInSet

      @Test public void testIsUnexpectedGatewayZone_zoneIdNotInSet()
      The only case the warning is actually actionable: both TLVs are present but the AZ id isn't in the advertised gateway zone set, indicating a real config mismatch between the access point and the broker.