@@ -57,7 +57,7 @@ def test_recreates(self):
5757 log .debug (drop )
5858 execute_until_pass (session , drop )
5959
60- create = "CREATE KEYSPACE {0} WITH replication = {{'class': 'SimpleStrategy ', 'replication_factor': 3}}" .format (keyspace )
60+ create = "CREATE KEYSPACE {0} WITH replication = {{'class': 'NetworkTopologyStrategy ', 'replication_factor': 3}}" .format (keyspace )
6161 log .debug (create )
6262 execute_until_pass (session , create )
6363
@@ -82,7 +82,7 @@ def test_for_schema_disagreements_different_keyspaces(self):
8282 session = self .session
8383
8484 for i in range (30 ):
85- execute_until_pass (session , "CREATE KEYSPACE test_{0} WITH replication = {{'class': 'SimpleStrategy ', 'replication_factor': 1}}" .format (i ))
85+ execute_until_pass (session , "CREATE KEYSPACE test_{0} WITH replication = {{'class': 'NetworkTopologyStrategy ', 'replication_factor': 1}}" .format (i ))
8686 execute_until_pass (session , "CREATE TABLE test_{0}.cf (key int PRIMARY KEY, value int)" .format (i ))
8787
8888 for j in range (100 ):
@@ -100,10 +100,10 @@ def test_for_schema_disagreements_same_keyspace(self):
100100
101101 for i in range (30 ):
102102 try :
103- execute_until_pass (session , "CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy ', 'replication_factor': 1}" )
103+ execute_until_pass (session , "CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy ', 'replication_factor': 1}" )
104104 except AlreadyExists :
105105 execute_until_pass (session , "DROP KEYSPACE test" )
106- execute_until_pass (session , "CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy ', 'replication_factor': 1}" )
106+ execute_until_pass (session , "CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy ', 'replication_factor': 1}" )
107107
108108 execute_until_pass (session , "CREATE TABLE test.cf (key int PRIMARY KEY, value int)" )
109109
@@ -132,7 +132,7 @@ def test_for_schema_disagreement_attribute(self):
132132 cluster = TestCluster (max_schema_agreement_wait = 0.001 )
133133 session = cluster .connect (wait_for_all_pools = True )
134134
135- rs = session .execute ("CREATE KEYSPACE test_schema_disagreement WITH replication = {'class': 'SimpleStrategy ', 'replication_factor': 3}" )
135+ rs = session .execute ("CREATE KEYSPACE test_schema_disagreement WITH replication = {'class': 'NetworkTopologyStrategy ', 'replication_factor': 3}" )
136136 self .check_and_wait_for_agreement (session , rs , False )
137137 rs = session .execute (SimpleStatement ("CREATE TABLE test_schema_disagreement.cf (key int PRIMARY KEY, value int)" ,
138138 consistency_level = ConsistencyLevel .ALL ))
@@ -144,7 +144,7 @@ def test_for_schema_disagreement_attribute(self):
144144 # These should have schema agreement
145145 cluster = TestCluster (max_schema_agreement_wait = 100 )
146146 session = cluster .connect ()
147- rs = session .execute ("CREATE KEYSPACE test_schema_disagreement WITH replication = {'class': 'SimpleStrategy ', 'replication_factor': 3}" )
147+ rs = session .execute ("CREATE KEYSPACE test_schema_disagreement WITH replication = {'class': 'NetworkTopologyStrategy ', 'replication_factor': 3}" )
148148 self .check_and_wait_for_agreement (session , rs , True )
149149 rs = session .execute (SimpleStatement ("CREATE TABLE test_schema_disagreement.cf (key int PRIMARY KEY, value int)" ,
150150 consistency_level = ConsistencyLevel .ALL ))
0 commit comments