def run(self): with mongo.replset(mongod=self.options.mongod, port=self.options.port, verbose=self.options.verbose, quickstart=False) as self.mongo: while True: self.test_push()
def run(self): with mongo.replset(mongod=self.options.mongod, port=self.options.port, verbose=self.options.verbose, quickstart=False, nodes=1) as self.mongo: while True: self.test_index_builds()
def run(self): with mongo.replset(mongod=self.options.mongod, port=self.options.port, verbose=self.options.verbose) as self.mongo: while True: client = self.mongo.connect_primary() for i in xrange(30): client['test']['test_failover'].insert({"heartbeat": time.time()}) time.sleep(1) self.test_failover()
def run(self): with mongo.replset(mongod=self.options.mongod, port=self.options.port, verbose=self.options.verbose) as self.mongo: while True: client = self.mongo.connect_primary() for i in xrange(30): client['test']['test_failover'].insert( {"heartbeat": time.time()}) time.sleep(1) self.test_failover()
def run(self): with mongo.replset(mongod=self.options.mongod, port=self.options.port, verbose=self.options.verbose) as self.mongo: self.test_failover()