def test_show_table(): common.print_debug_msg(3, "show and show(x) table") cmd = "./teracli show" common.runcmd(cmd) cmd = "./teracli showx" common.runcmd(cmd) cmd = "./teracli show table_test001" common.runcmd(cmd) cmd = "./teracli show table_test002" common.runcmd(cmd) cmd = "./teracli showx table_test001" common.runcmd(cmd) cmd = "./teracli showx table_test002" common.runcmd(cmd) cmd = "./teracli showschema table_test001" common.runcmd(cmd) cmd = "./teracli showschema table_test002" common.runcmd(cmd) cmd = "./teracli showschemax table_test001" common.runcmd(cmd) cmd = "./teracli showschemax table_test002" common.runcmd(cmd)
def test_get_table(): common.print_debug_msg(3, "read data form table_test001 and table_test002") cmd = "./teracli get table_test001 test001key update_flag:test001q" common.exe_and_check_res(cmd) cmd = "./teracli get table_test002 test002key" common.exe_and_check_res(cmd)
def test_create_table(): common.print_debug_msg(2, "create table_test001 and create table_test002(kv), write and check") cmd = "./teracli createbyfile testcase/data/create_table_schema" common.runcmd(cmd) cmd = './teracli create "table_test002 <storage=flash, splitsize=2048, mergesize=128>"' common.runcmd(cmd) '''
def test_put_table(): common.print_debug_msg(2, "put one data to table_test001 and table_test002") cmd = "./teracli put table_test001 test001key update_flag:test001q test001v" common.exe_and_check_res(cmd) cmd = "./teracli put table_test002 test002key test002v" common.exe_and_check_res(cmd) '''
def setUp(): """ 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)
def test_create_table(): common.print_debug_msg( 2, "create table_test001 and create table_test002(kv), write and check") cmd = "./teracli createbyfile testcase/data/create_table_schema" common.runcmd(cmd) cmd = './teracli create "table_test002 <storage=flash, splitsize=2048, mergesize=128>"' common.runcmd(cmd) '''
def test_show_table(): """ show method """ common.print_debug_msg(3, "show and show(x) table") cmd = "./teracli show" common.exe_and_check_res(cmd) cmd = "./teracli showx" common.exe_and_check_res(cmd) cmd = "./teracli show table_test001" common.exe_and_check_res(cmd) cmd = "./teracli show table_test002" common.exe_and_check_res(cmd) cmd = "./teracli showx table_test001" common.exe_and_check_res(cmd) cmd = "./teracli showx table_test002" common.exe_and_check_res(cmd) cmd = "./teracli showschema table_test001" common.exe_and_check_res(cmd) cmd = "./teracli showschema table_test002" common.exe_and_check_res(cmd) cmd = "./teracli showschemax table_test001" common.exe_and_check_res(cmd) cmd = "./teracli showschemax table_test002" common.exe_and_check_res(cmd)
def setUp(): common.print_debug_msg(1, "setup()")
def tearDown(): common.print_debug_msg(1, "teardown()")
def tearDown(): """ tear down """ common.print_debug_msg(1, "teardown()")
def setUp(): """ set env """ common.print_debug_msg(1, "setup()")
def setUp(): common.clear_env() common.print_debug_msg(1, "start master, ts1, ts2, ts3 and status is ok")
def setUp(): """ set env """ common.print_debug_msg(1, "start master, ts1, ts2, ts3 and status is ok")