Example #1
0
def setUp():
    '''
    setup
    '''
    common.drop_table("single_row_txn_test")

    cmd = "./teracli create 'single_row_txn_test<txn=on>{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
def setUp():
    #clear env
    common.drop_table("crud_table")

    #set env
    cmd = "./teracli create 'crud_table{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
    global table
    try:
        client = Client("", "pysdk")
        table = client.OpenTable("crud_table")
    except TeraSdkException as e:
        print(e.reason)
        nose.tools.assert_true(False)
Example #3
0
def setUp():
    #clear env
    common.drop_table("crud_table")

    #set env
    cmd = "./teracli create 'crud_table{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
    global table
    try:
        client = Client("", "pysdk")
        table = client.OpenTable("crud_table")
    except TeraSdkException as e:
        print(e.reason)
        nose.tools.assert_true(False)
Example #4
0
def tearDown():
    # clear env
    common.drop_table("single_row_txn_test")
    pass
Example #5
0
def setUp():
    common.drop_table("filter_table")
    common.runcmd("./teracli create 'filter_table{lg0{cf0,cf1}}'")
Example #6
0
def setUp():
    common.drop_table("filter_table")
    common.runcmd("./teracli create 'filter_table{lg0{cf0,cf1}}'")