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
tests: replace SimpleStrategy with NetworkTopologyStrategy
Replace SimpleStrategy with NetworkTopologyStrategy across integration
tests to align with ScyllaDB's tablet-based replication defaults.
In the tablets test module, skip default keyspace creation
(set_keyspace=False) to avoid RF=3 keyspaces that block node
decommission when all nodes already hold replicas.
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'}'''
1267
+
WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '3'}'''
1260
1268
withpytest.raises(AlreadyExists):
1261
1269
session.execute(ddl%ksname)
1262
1270
@@ -1387,7 +1395,7 @@ def setUp(self):
1387
1395
self.session=self.cluster.connect()
1388
1396
name=self._testMethodName.lower()
1389
1397
crt_ks='''
1390
-
CREATE KEYSPACE %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} AND durable_writes = true'''%name
1398
+
CREATE KEYSPACE %s WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1} AND durable_writes = true'''%name
1391
1399
self.session.execute(crt_ks)
1392
1400
1393
1401
deftearDown(self):
@@ -1437,7 +1445,7 @@ def setup_class(cls):
1437
1445
cls.session.execute(
1438
1446
"""
1439
1447
CREATE KEYSPACE %s
1440
-
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
1448
+
WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '1'};
1441
1449
"""%cls.keyspace_name)
1442
1450
cls.session.set_keyspace(cls.keyspace_name)
1443
1451
exceptException:
@@ -1540,7 +1548,7 @@ def setup_class(cls):
1540
1548
cls.cluster=TestCluster()
1541
1549
cls.keyspace_name=cls.__name__.lower()
1542
1550
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)
1551
+
cls.session.execute("CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1}"%cls.keyspace_name)
0 commit comments