Class ProxyProtocolCombinedEngineTest
java.lang.Object
org.apache.kafka.common.network.ProxyProtocolCombinedEngineTest
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ProxyProtocolCombinedEngineTest
public ProxyProtocolCombinedEngineTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
testActiveEngineAsV1Engine
- Throws:
IOException
-
testActiveEngineAsV2Engine
- Throws:
IOException
-
testActiveEngineNotSet
- Throws:
IOException
-
testOnlyConnectionModeServerSupported
@Test public void testOnlyConnectionModeServerSupported() -
testInvalidProxyProtocolHeaderWithoutFallback
@Test public void testInvalidProxyProtocolHeaderWithoutFallback() -
testInvalidProxyProtocolHeaderWithFallback
- Throws:
IOException
-