コード例 #1
0
ファイル: test_basic_op.py プロジェクト: ducky-hong/nbase-arc
 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' )
コード例 #2
0
ファイル: test_scan.py プロジェクト: LichKing-lee/nbase-arc
 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
コード例 #3
0
ファイル: test_scaleout.py プロジェクト: ducky-hong/nbase-arc
 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
コード例 #4
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
コード例 #5
0
ファイル: testarcci.py プロジェクト: LichKing-lee/nbase-arc
    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
コード例 #6
0
ファイル: test_clusterutil.py プロジェクト: cl9200/nbase-arc
    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
コード例 #7
0
ファイル: testarcci.py プロジェクト: ducky-hong/nbase-arc
    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
コード例 #8
0
ファイル: test_gateway_mgmt.py プロジェクト: ruo91/nbase-arc
 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
コード例 #9
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
コード例 #10
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')
コード例 #11
0
 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)
コード例 #12
0
 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
コード例 #13
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')
コード例 #14
0
ファイル: test_pgs_hanging.py プロジェクト: iloview/nbase-arc
 def setUp( self ):
     util.set_process_logfile_prefix( 'TestPGSHanging_%s' % self._testMethodName )
     return 0
コード例 #15
0
ファイル: test_bgdel.py プロジェクト: zhangjinde/nbase-arc
 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'])
コード例 #16
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
コード例 #17
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
コード例 #18
0
 def setUp(self):
     util.set_process_logfile_prefix('TestPGSHanging_%s' %
                                     self._testMethodName)
     return 0
コード例 #19
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' )
コード例 #20
0
ファイル: test_gateway.py プロジェクト: zhongcy/nbase-arc
 def setUp( self ):
     util.set_process_logfile_prefix( 'TestGateway_%s' % self._testMethodName )
     return 0
コード例 #21
0
 def setUp(self):
     util.set_process_logfile_prefix('TestConsistentRead_%s' %
                                     self._testMethodName)
     return 0
コード例 #22
0
 def setUp(self):
     util.set_process_logfile_prefix( 'TestNetworkIsolation_%s' % self._testMethodName )
     self.cleanup_iptables()
     return 0
コード例 #23
0
ファイル: test_large_scale.py プロジェクト: zhongcy/nbase-arc
 def setUp(self):
     util.set_process_logfile_prefix('TestLargeScale_%s' %
                                     self._testMethodName)
     return 0
コード例 #24
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' )
コード例 #25
0
 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' )
コード例 #26
0
ファイル: test_bgdel.py プロジェクト: cl9200/nbase-arc
 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'])
コード例 #27
0
ファイル: test_gateway.py プロジェクト: cl9200/nbase-arc
 def setUp( self ):
     util.set_process_logfile_prefix( 'TestGateway_%s' % self._testMethodName )
     return 0
コード例 #28
0
 def setUp( self ):
     util.set_process_logfile_prefix( 'TestLargeScale_%s' % self._testMethodName )
     return 0
コード例 #29
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
コード例 #30
0
 def setUp( self ):
     util.set_process_logfile_prefix( 'TestConsistentRead_%s' % self._testMethodName )
     return 0
コード例 #31
0
ファイル: test_scaleout.py プロジェクト: zhongcy/nbase-arc
 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')
コード例 #32
0
 def setUp(self):
     util.set_process_logfile_prefix( 'TestNetworkIsolation_%s' % self._testMethodName )
     self.cleanup_iptables()
     return 0
コード例 #33
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