示例#1
0
 def setUp(self):
     try:
         super(XDCRTests, self).setUp()
         self.method_name = self.input.param("test_to_run", "test_simple_check")
         self.with_reb = self.input.param("with_reb", None)
         self.bucket_topology = self.input.param("bucket_topology", "default:1><2").split(";")
         self.src_init = self.input.param('src_init', 1)
         self.dest_init = self.input.param('dest_init', 1)
         self.buckets_on_src = [str(bucket_repl.split(":")[0]) for bucket_repl in self.bucket_topology if re.search('\S+:\S*1', bucket_repl)]
         self.buckets_on_dest = [str(bucket_repl.split(":")[0]) for bucket_repl in self.bucket_topology if re.search('\S+:\S*2', bucket_repl)]
         self.repl_buckets_from_src = [str(bucket_repl.split(":")[0]) for bucket_repl in self.bucket_topology if bucket_repl.find("1>") != -1 ]
         self.repl_buckets_from_dest = [str(bucket_repl.split(":")[0]) for bucket_repl in self.bucket_topology if bucket_repl.find("<2") != -1 ]
         if self.repl_buckets_from_dest:
             self._replication_direction_str = "bidirection"
         else:
             self._replication_direction_str = "unidirection"
         UpgradeTests._override_clusters_structure()
     except:
         self.cluster.shutdown()
示例#2
0
 def _override_clusters_structure(self):
     UpgradeTests._override_clusters_structure(self)
示例#3
0
 def _override_clusters_structure(self):
     UpgradeTests._override_clusters_structure(self)