Example #1
0
def tearDownModule():
    if not RUN_KV:
        return
    c = IntegrationTestBase.create_client()
    c.bucket(testrun_sibs_bucket).clear_properties()
    c.bucket(testrun_props_bucket).clear_properties()
    c.close()
Example #2
0
def tearDownModule():
    if not RUN_KV:
        return
    c = IntegrationTestBase.create_client()
    c.bucket(testrun_sibs_bucket).clear_properties()
    c.bucket(testrun_props_bucket).clear_properties()
    c.close()
Example #3
0
def yzTearDown(c, *yzdata):
    if RUN_YZ:
        c = IntegrationTestBase.create_client()
        for yz in yzdata:
            logging.debug("yzTearDown: %s", yz)
            if yz['btype'] is not None:
                t = c.bucket_type(yz['btype'])
                b = t.bucket(yz['bucket'])
            else:
                b = c.bucket(yz['bucket'])
            b.set_property('search_index', '_dont_index_')
            c.delete_search_index(yz['index'])
            for keys in b.stream_keys():
                for key in keys:
                    b.delete(key)
        c.close()
Example #4
0
def yzSetUp(*yzdata):
    if RUN_YZ:
        c = IntegrationTestBase.create_client()
        for yz in yzdata:
            logging.debug("yzSetUp: %s", yz)
            c.create_search_index(yz['index'], timeout=30000)
            if yz['btype'] is not None:
                t = c.bucket_type(yz['btype'])
                b = t.bucket(yz['bucket'])
            else:
                b = c.bucket(yz['bucket'])
            # Keep trying to set search bucket property until it succeeds
            index_set = False
            while not index_set:
                try:
                    b.set_property('search_index', yz['index'])
                    index_set = True
                except RiakError:
                    pass
        c.close()
Example #5
0
def setUpModule():
    if not RUN_KV:
        return
    c = IntegrationTestBase.create_client()
    c.bucket(testrun_sibs_bucket).allow_mult = True
    c.close()
Example #6
0
def setUpModule():
    if not RUN_KV:
        return
    c = IntegrationTestBase.create_client()
    c.bucket(testrun_sibs_bucket).allow_mult = True
    c.close()
Example #7
0
def tearDownModule():
    if RUN_SEARCH and not RUN_YZ:
        c = IntegrationTestBase.create_client()
        b = c.bucket(testrun_search_bucket)
        b.clear_properties()
        c.close()
Example #8
0
def setUpModule():
    if RUN_SEARCH and not RUN_YZ:
        c = IntegrationTestBase.create_client()
        b = c.bucket(testrun_search_bucket)
        b.enable_search()
        c.close()
Example #9
0
def tearDownModule():
    if RUN_SEARCH and not RUN_YZ:
        c = IntegrationTestBase.create_client()
        b = c.bucket(testrun_search_bucket)
        b.clear_properties()
        c.close()
Example #10
0
def setUpModule():
    if RUN_SEARCH and not RUN_YZ:
        c = IntegrationTestBase.create_client()
        b = c.bucket(testrun_search_bucket)
        b.enable_search()
        c.close()