Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.datastax.oss.driver.api.core.cql.ResultSet;
import com.datastax.oss.driver.api.core.metadata.EndPoint;
import com.datastax.oss.driver.api.core.metadata.Node;
import com.datastax.oss.driver.api.testinfra.CassandraSkip;
import com.datastax.oss.driver.api.testinfra.ScyllaRequirement;
import com.datastax.oss.driver.api.testinfra.ccm.CcmBridge;
import com.datastax.oss.driver.api.testinfra.session.SessionUtils;
import java.net.InetAddress;
Expand Down Expand Up @@ -41,6 +43,11 @@ public void checkScyllaVersion() {
}

@Test
@CassandraSkip
@ScyllaRequirement(
minEnterprise = "2025.1.1",
minOSS = "6.2.0",
description = "Zero token nodes support needed")
public void should_not_ignore_zero_token_peer_when_option_is_enabled() {
CqlSession session = null;
CcmBridge.Builder ccmBridgeBuilder = CcmBridge.builder();
Expand All @@ -65,12 +72,18 @@ public void should_not_ignore_zero_token_peer_when_option_is_enabled() {
nodes.stream().map(Node::getEndPoint).map(EndPoint::toString).collect(Collectors.toSet());
assertThat(toStrings)
.containsOnly("/127.0.1.1:9042", "/127.0.1.2:9042", "/127.0.1.3:9042", "/127.0.1.4:9042");
session.execute("select * from system.peers");
} finally {
if (session != null) session.close();
}
}

@Test
@CassandraSkip
@ScyllaRequirement(
minEnterprise = "2025.1.1",
minOSS = "6.2.0",
description = "Zero token nodes support needed")
public void should_not_discover_zero_token_DC_when_option_is_disabled() {
CqlSession session = null;
CcmBridge.Builder ccmBridgeBuilder = CcmBridge.builder();
Expand Down Expand Up @@ -108,6 +121,11 @@ public void should_not_discover_zero_token_DC_when_option_is_disabled() {
}

@Test
@CassandraSkip
@ScyllaRequirement(
minEnterprise = "2025.1.1",
minOSS = "6.2.0",
description = "Zero token nodes support needed")
public void should_discover_zero_token_DC_when_option_is_enabled() {
CqlSession session = null;
CcmBridge.Builder ccmBridgeBuilder = CcmBridge.builder();
Expand Down Expand Up @@ -149,6 +167,11 @@ public void should_discover_zero_token_DC_when_option_is_enabled() {
}

@Test
@CassandraSkip
@ScyllaRequirement(
minEnterprise = "2025.1.1",
minOSS = "6.2.0",
description = "Zero token nodes support needed")
public void should_connect_to_zero_token_contact_point() {
CqlSession session = null;
CcmBridge.Builder ccmBridgeBuilder = CcmBridge.builder();
Expand Down Expand Up @@ -176,6 +199,11 @@ public void should_connect_to_zero_token_contact_point() {
}

@Test
@CassandraSkip
@ScyllaRequirement(
minEnterprise = "2025.1.1",
minOSS = "6.2.0",
description = "Zero token nodes support needed")
public void should_connect_to_zero_token_DC() {
// This test is similar but not exactly the same as should_connect_to_zero_token_contact_point.
// In the future we may want to have different behavior for arbiter DCs and adjust this test
Expand Down
Loading