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()
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()
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()
def setUpModule(): if not RUN_KV: return c = IntegrationTestBase.create_client() c.bucket(testrun_sibs_bucket).allow_mult = True c.close()
def tearDownModule(): if RUN_SEARCH and not RUN_YZ: c = IntegrationTestBase.create_client() b = c.bucket(testrun_search_bucket) b.clear_properties() c.close()
def setUpModule(): if RUN_SEARCH and not RUN_YZ: c = IntegrationTestBase.create_client() b = c.bucket(testrun_search_bucket) b.enable_search() c.close()