Ejemplo n.º 1
0
 def setUp(self):
     self.input = TestInputSingleton.input
     self.input.test_params.update({"default_bucket":False})
     BaseTestCase.setUp(self)
     self.rest = RestConnection(self.servers[0])
     self.op_type = self.input.param("op_type", "create")
     self.tasks = []         # To have all tasks running in parallel.
     self._iter_count = 0    # To keep a check of how many items are deleted
     self.available_servers = list()
     self.available_servers = self.cluster.servers[self.nodes_init:]
     self.num_buckets = self.input.param("num_buckets", 1)
     self.mutate = 0
     self.doc_ops = self.input.param("doc_ops", None)
     if self.doc_ops:
         self.doc_ops = self.doc_ops.split(';')
     self.iterations = self.input.param("iterations", 2)
     self.vbucket_check = self.input.param("vbucket_check", True)
     self.new_num_writer_threads = self.input.param(
         "new_num_writer_threads", 6)
     self.new_num_reader_threads = self.input.param(
         "new_num_reader_threads", 8)
Ejemplo n.º 2
0
 def setUp(self):
     self.input = TestInputSingleton.input
     self.input.test_params.update({"default_bucket": False})
     BaseTestCase.setUp(self)
     self.rest = RestConnection(self.servers[0])
     self.op_type = self.input.param("op_type", "create")
     self.available_servers = list()
     self.available_servers = self.cluster.servers[self.nodes_init:]
     self.num_buckets = self.input.param("num_buckets", 1)
     self.mutate = 0
     self.doc_ops = self.input.param("doc_ops", None)
     if self.doc_ops:
         self.doc_ops = self.doc_ops.split(';')
     self.iterations = self.input.param("iterations", 2)
     self.vbucket_check = self.input.param("vbucket_check", True)
     self.new_num_writer_threads = self.input.param(
         "new_num_writer_threads", 6)
     self.new_num_reader_threads = self.input.param(
         "new_num_reader_threads", 8)
     self.create_perc = 100
     self.update_perc = self.input.param("update_perc", 50)
     self.delete_perc = self.input.param("delete_perc", 50)
     self.expiry_perc = self.input.param("expiry_perc", 0)
     self.start = 0
     self.end = 0
     self.initial_items = self.start
     self.final_items = self.end
     self.create_end = 0
     self.create_start = 0
     self.update_end = 0
     self.update_start = 0
     self.delete_end = 0
     self.delete_start = 0
     self.expire_end = 0
     self.expire_start = 0
     self.num_collections = self.input.param("num_collections", 10)
 def setUp(self, add_defualt_cbas_node=True):
     self.input = TestInputSingleton.input
     self.input.test_params.update({"default_bucket": False})
     BaseTestCase.setUp(self)
     self.rest = RestConnection(self.master)