Package io.stargate.it.cql
Class ProxyProtocolTest
- java.lang.Object
-
- io.stargate.it.BaseIntegrationTest
-
- io.stargate.it.cql.ProxyProtocolTest
-
@ExtendWith({ProxyExtension.class,CqlSessionExtension.class}) public class ProxyProtocolTest extends BaseIntegrationTest
-
-
Field Summary
-
Fields inherited from class io.stargate.it.BaseIntegrationTest
backend
-
-
Constructor Summary
Constructors Constructor Description ProxyProtocolTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
buildParameters(StargateParameters.Builder builder)
void
querySystemLocalAndPeers(com.datastax.oss.driver.api.core.CqlSession session, List<InetSocketAddress> proxyAddresses)
void
testTokenMapDistribution(com.datastax.oss.driver.api.core.CqlSession session, List<InetSocketAddress> proxyAddresses, com.datastax.oss.driver.api.core.CqlIdentifier keyspace)
-
Methods inherited from class io.stargate.it.BaseIntegrationTest
backendSupportsSAI, init, isCassandra4, isCassandra41, now, withProtocolV4, withProtocolV5
-
-
-
-
Method Detail
-
buildParameters
public static void buildParameters(StargateParameters.Builder builder)
-
querySystemLocalAndPeers
@Test @DisplayName("Should expose proxy addresses in system.local and system.peers") public void querySystemLocalAndPeers(com.datastax.oss.driver.api.core.CqlSession session, List<InetSocketAddress> proxyAddresses)
-
testTokenMapDistribution
@Test @DisplayName("Should use all proxy addresses when using token-aware load balancing") public void testTokenMapDistribution(com.datastax.oss.driver.api.core.CqlSession session, List<InetSocketAddress> proxyAddresses, com.datastax.oss.driver.api.core.CqlIdentifier keyspace)
-
-