示例#1
0
 def setUp(self):
     out = common.runcmd_output("cd %s; ./teracli showts|grep kReady" %
                                (const.teracli_dir),
                                ignore_status=True)
     #assert( len(out.split('\n')) == len(const.tabletnode_list) )
     common.check_core()
     common.cleanup()
示例#2
0
def setUp():

    common.clear_env()
    common.check_core()
    '''
    set env
    '''

    common.print_debug_msg(0, "start master, ts1, ts2, ts3, and status is ok")
    common.print_debug_msg(1, "create test_table001 and test_table002(kv)")
    cmd = "./teracli createbyfile testcase/data/create_table_schema"
    common.exe_and_check_res(cmd)

    cmd = "./teracli create 'table_test002 <storage=flash, splitsize=2048, mergesize=128>'"
    common.exe_and_check_res(cmd)
示例#3
0
def setUp():

    common.clear_env()
    common.check_core()
    '''
    set env
    '''

    common.print_debug_msg(0, "start master, ts1, ts2, ts3, and status is ok")
    common.print_debug_msg(1, "create test_table001 and test_table002(kv)")
    cmd = "./teracli createbyfile testcase/data/create_table_schema"
    common.exe_and_check_res(cmd)

    cmd = "./teracli create 'table_test002 <storage=flash, splitsize=2048, mergesize=128>'"
    common.exe_and_check_res(cmd)
示例#4
0
def tearDown():
    ret = common.check_core()
    nose.tools.assert_equal(ret, 0)
    common.bfs_stop_all()
    print "stop nameserver, chunkserver and status is ok"
    
    '''
示例#5
0
 def setUp(self):
     out = common.runcmd_output("cd %s; ./teracli showts|grep kReady" % (const.teracli_dir), ignore_status=True)
     #assert( len(out.split('\n')) == len(const.tabletnode_list) )
     common.check_core()
     common.cleanup()
def tearDown():
    ret = common.check_core()
    nose.tools.assert_equal(ret, 0)
    common.bfs_stop_all()
    print "stop nameserver, chunkserver and status is ok"
    '''