Class ProxyProtocolCombinedEngineTest

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

public class ProxyProtocolCombinedEngineTest extends Object
A set of tests for the ProxyProtocolCombinedEngine. Does not directly test V1 or V2 engine logic, as there are separate unit tests for those. See ProxyProtocolV1EngineAsCombinedTest and ProxyProtocolV2EngineAsCombinedTest for tests that exercise the usage of the combined engine in the context of V1 and V2 headers respectively.
  • Constructor Details

    • ProxyProtocolCombinedEngineTest

      public ProxyProtocolCombinedEngineTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • testActiveEngineAsV1Engine

      @Test public void testActiveEngineAsV1Engine() throws IOException
      Throws:
      IOException
    • testActiveEngineAsV2Engine

      @Test public void testActiveEngineAsV2Engine() throws IOException
      Throws:
      IOException
    • testActiveEngineNotSet

      @Test public void testActiveEngineNotSet() throws IOException
      Throws:
      IOException
    • testOnlyConnectionModeServerSupported

      @Test public void testOnlyConnectionModeServerSupported()
    • testInvalidProxyProtocolHeaderWithoutFallback

      @Test public void testInvalidProxyProtocolHeaderWithoutFallback()
    • testInvalidProxyProtocolHeaderWithFallback

      @Test public void testInvalidProxyProtocolHeaderWithFallback() throws IOException
      Throws:
      IOException