You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'}'''
1259
+
WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '3'}'''
1260
1260
withpytest.raises(AlreadyExists):
1261
1261
session.execute(ddl%ksname)
1262
1262
@@ -1387,7 +1387,7 @@ def setUp(self):
1387
1387
self.session=self.cluster.connect()
1388
1388
name=self._testMethodName.lower()
1389
1389
crt_ks='''
1390
-
CREATE KEYSPACE %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} AND durable_writes = true'''%name
1390
+
CREATE KEYSPACE %s WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1} AND durable_writes = true'''%name
1391
1391
self.session.execute(crt_ks)
1392
1392
1393
1393
deftearDown(self):
@@ -1437,7 +1437,7 @@ def setup_class(cls):
1437
1437
cls.session.execute(
1438
1438
"""
1439
1439
CREATE KEYSPACE %s
1440
-
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
1440
+
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND tablets = {'enabled': false};
1441
1441
"""%cls.keyspace_name)
1442
1442
cls.session.set_keyspace(cls.keyspace_name)
1443
1443
exceptException:
@@ -1540,7 +1540,7 @@ def setup_class(cls):
1540
1540
cls.cluster=TestCluster()
1541
1541
cls.keyspace_name=cls.__name__.lower()
1542
1542
cls.session=cls.cluster.connect()
1543
-
cls.session.execute("CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}"%cls.keyspace_name)
1543
+
cls.session.execute("CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1}"%cls.keyspace_name)
0 commit comments