Class AbstractProxyProtocolEngineTest

java.lang.Object
org.apache.kafka.common.network.AbstractProxyProtocolEngineTest
Direct Known Subclasses:
ProxyProtocolV1EngineTest, ProxyProtocolV2EngineTest

public abstract class AbstractProxyProtocolEngineTest extends Object
A set of common utilities and tests for the ProxyProtocolV1Engine and ProxyProtocolV2Engine.
  • Constructor Details

    • AbstractProxyProtocolEngineTest

      public AbstractProxyProtocolEngineTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • testInvalidHeaders

      @Test public void testInvalidHeaders()
    • testFormatAndParse

      @ParameterizedTest @ValueSource(strings={"216.58.208.238","2001:db8:85a3:8d3:1319:8a2e:370:7348"}) public void testFormatAndParse(String sourceAddress) throws IOException
      Throws:
      IOException
    • testClientAddressConfig

      @ParameterizedTest @NullAndEmptySource @ValueSource(strings={" "," 216.58.208.238 ","\n"}) public void testClientAddressConfig(String address)
    • testClientPortConfig

      @ParameterizedTest @NullSource @ValueSource(ints={-1,65536}) public void testClientPortConfig(Integer port)