Skip to content

Commit 7b18eeb

Browse files
committed
test: use NTS keyspaces in Scylla tests
1 parent e4916be commit 7b18eeb

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

driver-core/src/test/java/com/datastax/driver/core/PreparedStatementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ public void should_set_routing_key_on_case_sensitive_keyspace_and_table() {
540540
session()
541541
.execute(
542542
"CREATE KEYSPACE \"Test\" WITH replication = { "
543-
+ " 'class': 'SimpleStrategy',"
544-
+ " 'replication_factor': '1'"
543+
+ " 'class': 'NetworkTopologyStrategy',"
544+
+ " 'datacenter1': '1'"
545545
+ "}");
546546
session().execute("CREATE TABLE \"Test\".\"Foo\" (i int PRIMARY KEY)");
547547

driver-mapping/src/test/java/com/datastax/driver/mapping/MapperKeyspaceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public class MapperKeyspaceTest extends CCMTestsSupport {
3333
@Override
3434
public void onTestContextInitialized() {
3535
execute(
36-
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}",
36+
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 1}",
3737
"CREATE TYPE IF NOT EXISTS MapperKeyspaceTest.address(street text)",
3838
"CREATE TABLE IF NOT EXISTS MapperKeyspaceTest.user(name text PRIMARY KEY, address frozen<address>)",
39-
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest2 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}",
39+
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest2 WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 1}",
4040
"CREATE TYPE IF NOT EXISTS MapperKeyspaceTest2.address(street text)",
4141
"CREATE TABLE IF NOT EXISTS MapperKeyspaceTest2.user(name text PRIMARY KEY, address frozen<address>)");
4242
}

driver-mapping/src/test/java/com/datastax/driver/mapping/UDTFieldMapperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void udt_and_tables_with_ks_created_in_another_session_should_be_mapped()
4343
// Create type and table
4444
session1.execute(
4545
"create keyspace if not exists java_509 "
46-
+ "with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };");
46+
+ "with replication = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 };");
4747
session1.execute("create type java_509.my_tuple (" + "type text, " + "value text);");
4848
session1.execute(
4949
"create table java_509.my_hash ("
@@ -75,7 +75,7 @@ public void udt_and_tables_without_ks_created_in_another_session_should_be_mappe
7575
Session session1 = cluster1.connect();
7676
session1.execute(
7777
"create keyspace if not exists java_509b "
78-
+ "with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };");
78+
+ "with replication = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 };");
7979
session1.execute("use java_509b");
8080
session1.execute("create type my_tuple (" + "type text, " + "value text);");
8181
session1.execute(

0 commit comments

Comments
 (0)