Ejemplo n.º 1
0
def test_find_events_smoke():
    num = 50
    rs, e_desc, data_keys = setup_syn()
    all_data = syn_data(data_keys, num)

    print(rs)
    print(e_desc)
    mdsc.bulk_insert_events(e_desc, all_data, validate=False)
    mdsc.insert_run_stop(rs, ttime.time(), uid=str(uuid.uuid4()))
    # mdsc.clear_process_cache()

    # make sure the uid works
    next(mdsc.find_events(descriptor=e_desc))

    # mdsc.clear_process_cache()
    descriptor, = mdsc.find_descriptors(uid=e_desc)

    # mdsc.clear_process_cache()
    # make sure that searching by descriptor document works
    next(mdsc.find_events(descriptor=descriptor))
Ejemplo n.º 2
0
def test_find_events_smoke():
    num = 50
    rs, e_desc, data_keys = setup_syn()
    all_data = syn_data(data_keys, num)

    print(rs)
    print(e_desc)
    mdsc.bulk_insert_events(e_desc, all_data, validate=False)
    mdsc.insert_run_stop(rs, ttime.time(), uid=str(uuid.uuid4()))
    # mdsc.clear_process_cache()

    # make sure the uid works
    next(mdsc.find_events(descriptor=e_desc))

    # mdsc.clear_process_cache()
    descriptor, = mdsc.find_descriptors(uid=e_desc)

    # mdsc.clear_process_cache()
    # make sure that searching by descriptor document works
    next(mdsc.find_events(descriptor=descriptor))
Ejemplo n.º 3
0
def test_find_events_ValueError():
    list(mdsc.find_events(event_descriptor='cat'))
Ejemplo n.º 4
0
def test_find_events_ValueError():
    list(mdsc.find_events(event_descriptor='cat'))