Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)

    '''
Пример #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)
    '''
Пример #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)
Пример #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)

    '''
Пример #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)
    '''
Пример #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)
Пример #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)
Пример #12
0
def setUp():

    common.print_debug_msg(1, "setup()")
Пример #13
0
def tearDown():
    common.print_debug_msg(1, "teardown()")
Пример #14
0
def setUp():

    common.print_debug_msg(1, "setup()")
Пример #15
0
def tearDown():
    """
    tear down
    """
    common.print_debug_msg(1, "teardown()")
Пример #16
0
def setUp():
    """
    set env
    """

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

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

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