Exemplo n.º 1
0
 def setUp(self):
     super(TestMongosLoadBalancing, self).setUp()
     seed_list = ha_tools.create_sharded_cluster()
     self.assertIsNotNone(seed_list)
     self.dbname = 'pymongo_mongos_ha'
     self.client = MongoClient(
         seed_list, serverSelectionTimeoutMS=self.server_selection_timeout)
     self.client.drop_database(self.dbname)
Exemplo n.º 2
0
 def setUp(self):
     super(TestMongosLoadBalancing, self).setUp()
     seed_list = ha_tools.create_sharded_cluster()
     self.assertIsNotNone(seed_list)
     self.dbname = 'pymongo_mongos_ha'
     self.client = MongoClient(
         seed_list,
         serverSelectionTimeoutMS=self.server_selection_timeout)
     self.client.drop_database(self.dbname)
Exemplo n.º 3
0
 def setUp(self):
     seed_list = ha_tools.create_sharded_cluster()
     self.dbname = 'pymongo_mongos_ha'
     self.conn = Connection(seed_list)
     self.conn.drop_database(self.dbname)
Exemplo n.º 4
0
 def setUp(self):
     super(MotorTestMongosHighAvailability, self).setUp()
     self.seed_list = ha_tools.create_sharded_cluster()
Exemplo n.º 5
0
 def setUp(self):
     seed_list = ha_tools.create_sharded_cluster()
     self.dbname = 'pymongo_mongos_ha'
     self.client = MongoClient(seed_list)
     self.client.drop_database(self.dbname)
Exemplo n.º 6
0
 def setUp(self):
     super(MotorTestMongosHighAvailability, self).setUp()
     self.seed_list = ha_tools.create_sharded_cluster()
Exemplo n.º 7
0
 def setUp(self):
     seed_list = ha_tools.create_sharded_cluster()
     self.dbname = 'pymongo_mongos_ha'
     self.client = MongoClient(seed_list)
     self.client.drop_database(self.dbname)
Exemplo n.º 8
0
 def setUp(self):
     self.seed_list = ha_tools.create_sharded_cluster()
Exemplo n.º 9
0
 def setUp(self):
     seed_list = ha_tools.create_sharded_cluster()
     self.dbname = 'pymongo_mongos_ha'
     self.conn = Connection(seed_list)
     self.conn.drop_database(self.dbname)