def setUp(self): util.set_process_logfile_prefix( 'TestBasicOp_%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis(self.cluster) if ret is not 0: util.log('failed to test_basic_op.initialize') default_cluster.finalize(self.cluster) self.assertEquals( ret, 0, 'failed to test_basic_op.initialize' )
def setUp(self): util.set_process_logfile_prefix('TestScan_%s' % self._testMethodName) self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis(self.cluster) if self.conf_checker is None: util.log('failed to TestScan.initialize') return -1 return 0
def setUp(self): util.set_process_logfile_prefix( 'TestScaleout_%s' % self._testMethodName ) conf = {'smr_log_delete_delay':60} if default_cluster.initialize_starting_up_smr_before_redis( self.cluster, conf=conf ) is not 0: util.log('failed to TestScaleout.initialize') return -1 return 0
def setUp(self): util.set_process_logfile_prefix('TestClusterUtil_%s' % self._testMethodName) self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis(self.cluster) self.assertIsNotNone(self.conf_checker, 'failed to initialize cluster') # Setup proxy server self.getdump_proxy_proc = self.setup_proxy_server(self.getdump_proxy_port, self.cluster['servers'][0]['redis_port'], "/dev/null", self.getdump_proxy_log, "getdump.fifo") self.playdump_proxy_proc = self.setup_proxy_server(self.playdump_proxy_port, self.cluster['servers'][0]['redis_port'], self.playdump_proxy_log, "/dev/null", "playdump.fifo") return 0
def setUp(self): # Initialize cluster util.set_process_logfile_prefix( 'TestARCCI%s' % self._testMethodName ) self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis(self.cluster, arch=self.arch) self.assertIsNotNone(self.conf_checker, 'failed to initialize cluster') self.GW_LIST = [] for s in self.cluster['servers']: self.GW_LIST.append({"ip":s['ip'],"port":s['gateway_port']}) return 0
def setUp(self): util.set_process_logfile_prefix('TestClusterUtil_%s' % self._testMethodName) if default_cluster.initialize_starting_up_smr_before_redis(self.cluster) is not 0: util.log('failed to TestClusterUtil.initialize') return -1 # Setup proxy server self.getdump_proxy_proc = self.setup_proxy_server(self.getdump_proxy_port, self.cluster['servers'][0]['redis_port'], "/dev/null", self.getdump_proxy_log, "getdump.fifo") self.playdump_proxy_proc = self.setup_proxy_server(self.playdump_proxy_port, self.cluster['servers'][0]['redis_port'], self.playdump_proxy_log, "/dev/null", "playdump.fifo") return 0
def setUp(self): # Initialize cluster util.set_process_logfile_prefix( 'TestARCCI%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) if ret is not 0: default_cluster.finalize( self.cluster ) self.assertEquals( ret, 0, 'failed to test_arcci.initialize' ) self.GW_LIST = [] for s in self.cluster['servers']: self.GW_LIST.append({"ip":s['ip'],"port":s['gateway_port']}) return 0
def setUp(self): util.set_process_logfile_prefix("TestGatewayMgmt_%s" % self._testMethodName) if default_cluster.initialize_starting_up_smr_before_redis(self.cluster) is not 0: util.log("failed to TestScaleout.initialize") return -1 return 0
def setUp(self): ret = util.nic_add('eth1:arc', '127.0.0.100') util.set_process_logfile_prefix('TestNetworkIsolation_%s' % self._testMethodName) self.cleanup_iptables() return 0
def setUp(self): util.set_process_logfile_prefix( 'TestScaleout_%s' % self._testMethodName ) conf = {'smr_log_delete_delay':60} self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis( self.cluster, conf=conf ) self.assertIsNotNone(self.conf_checker, 'failed to initialize cluster')
def setUp(self): util.set_process_logfile_prefix('TestLocalProxy_%s' % self._testMethodName) ret = default_cluster.initialize_starting_up_smr_before_redis(self.cluster) if ret is not 0: util.log('failed to test_local_proxy.initialize') default_cluster.finalize(self.cluster)
def setUp(self): util.set_process_logfile_prefix( 'TestFreeClient_%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) if ret is not 0: default_cluster.finalize( self.cluster ) return 0
def setUp( self ): util.set_process_logfile_prefix( 'TestQuorumPolicy_%s' % self._testMethodName ) self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) self.assertIsNotNone(self.conf_checker, 'failed to initialize cluster')
def setUp( self ): util.set_process_logfile_prefix( 'TestPGSHanging_%s' % self._testMethodName ) return 0
def setUp(self): util.set_process_logfile_prefix('TestBackgroundDelete_%s' % self._testMethodName) server = self.cluster['servers'][0] self.redis = redis_sock.RedisClient(server['ip'], server['redis_port'])
def setUp(self): ret = util.nic_add('eth1:arc', '127.0.0.100') util.set_process_logfile_prefix( 'TestNetworkIsolation_%s' % self._testMethodName ) self.cleanup_iptables() return 0
def setUp(self): util.set_process_logfile_prefix('TestClusterUtil_%s' % self._testMethodName) self.conf_checker = default_cluster.initialize_starting_up_smr_before_redis(self.cluster) self.assertIsNotNone(self.conf_checker, 'failed to initialize cluster') return 0
def setUp(self): util.set_process_logfile_prefix('TestPGSHanging_%s' % self._testMethodName) return 0
def setUp( self ): util.set_process_logfile_prefix( 'TestHeartbeatChecker_%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) if ret is not 0: default_cluster.finalize( self.cluster ) self.assertEquals( ret, 0, 'failed to TestHeartbeatChecker.initialize' )
def setUp( self ): util.set_process_logfile_prefix( 'TestGateway_%s' % self._testMethodName ) return 0
def setUp(self): util.set_process_logfile_prefix('TestConsistentRead_%s' % self._testMethodName) return 0
def setUp(self): util.set_process_logfile_prefix( 'TestNetworkIsolation_%s' % self._testMethodName ) self.cleanup_iptables() return 0
def setUp(self): util.set_process_logfile_prefix('TestLargeScale_%s' % self._testMethodName) return 0
def setUp( self ): util.set_process_logfile_prefix( 'TestQuorumPolicy_%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) if ret is not 0: default_cluster.finalize( self.cluster ) self.assertEquals( ret, 0, 'failed to TestQuorumPolicy.initialize' )
def setUp( self ): util.set_process_logfile_prefix( 'TestCheckPointAndLog_%s' % self._testMethodName ) ret = default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) if ret is not 0: default_cluster.finalize( self.cluster ) self.assertEquals( ret, 0, 'failed to test_check_point_and_log.initialize' )
def setUp( self ): util.set_process_logfile_prefix( 'TestBackgroundDelete_%s' % self._testMethodName ) server = self.cluster['servers'][0] self.redis = redis_sock.RedisClient(server['ip'], server['redis_port'])
def setUp( self ): util.set_process_logfile_prefix( 'TestLargeScale_%s' % self._testMethodName ) return 0
def setUp(self): util.set_process_logfile_prefix( 'TestMaintenance_%s' % self._testMethodName ) if default_cluster.initialize_starting_up_smr_before_redis( self.cluster ) is not 0: util.log('failed to TestMaintenance.initialize') return -1 return 0
def setUp( self ): util.set_process_logfile_prefix( 'TestConsistentRead_%s' % self._testMethodName ) return 0