Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)

    '''
Example #6
0
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)
    '''
Example #7
0
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)
Example #8
0
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)

    '''
Example #9
0
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)
    '''
Example #10
0
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)
Example #11
0
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)
Example #12
0
def setUp():

    common.print_debug_msg(1, "setup()")
Example #13
0
def tearDown():
    common.print_debug_msg(1, "teardown()")
Example #14
0
def setUp():

    common.print_debug_msg(1, "setup()")
Example #15
0
def tearDown():
    """
    tear down
    """
    common.print_debug_msg(1, "teardown()")
Example #16
0
def setUp():
    """
    set env
    """

    common.print_debug_msg(1, "setup()")
Example #17
0
def setUp():
    common.clear_env()
    common.print_debug_msg(1, "start master, ts1, ts2, ts3 and status is ok")
Example #18
0
def setUp():
    """
    set env
    """

    common.print_debug_msg(1, "start master, ts1, ts2, ts3 and status is ok")
Example #19
0
def setUp():
    """
    set env
    """

    common.print_debug_msg(1, "setup()")
Example #20
0
def setUp():
    common.clear_env()
    common.print_debug_msg(1, "start master, ts1, ts2, ts3 and status is ok")