Exemple #1
0
def before_all():
    world.log = get_logger('lettuce', world.config['environment']['log_level'], True, True, 'logs/lettuce.log')
    check_properties()
    world.entities = None
    world.attributes_consult = None
    world.attributes_creation = None
    world.context_elements = None
    world.notify_conditions = None
    world.context_registrations = None
    world.service = None
    world.subservice = None
    world.mock = None
    world.mock_data = None
    world.payloads_count = -1
    world.response_count = -1
    world.cb_count = -1
    world.cb = {}
    world.payloads = {}
    world.responses = {}
    world.cb_config_to_start = ''
    world.cb_pid = get_cb_pid()
    world.bin_parms = None
    drop_all_test_databases(world.config['mongo']['host'], int(world.config['mongo']['port']))
Exemple #2
0
def before_all():
    # Fixme: this line is comment per changes in external library: cb_utils.py
    world.log = get_logger('lettuce', world.config['environment']['log_level'], True) #, True, 'logs/lettuce.log')
    check_properties()
    world.entities = None
    world.attributes_consult = None
    world.attributes_creation = None
    world.context_elements = None
    world.notify_conditions = None
    world.context_registrations = None
    world.service = None
    world.subservice = None
    world.mock = None
    world.mock_data = None
    world.payloads_count = -1
    world.response_count = -1
    world.cb_count = -1
    world.cb = {}
    world.payloads = {}
    world.responses = {}
    world.cb_config_to_start = ''
    world.cb_pid = get_cb_pid()
    world.bin_parms = None
Exemple #3
0
def before_all():
    # Fixme: this line is comment per changes in external library: cb_utils.py
    world.log = get_logger('lettuce', world.config['environment']['log_level'],
                           True)  #, True, 'logs/lettuce.log')
    check_properties()
    world.entities = None
    world.attributes_consult = None
    world.attributes_creation = None
    world.context_elements = None
    world.notify_conditions = None
    world.context_registrations = None
    world.service = None
    world.subservice = None
    world.mock = None
    world.mock_data = None
    world.payloads_count = -1
    world.response_count = -1
    world.cb_count = -1
    world.cb = {}
    world.payloads = {}
    world.responses = {}
    world.cb_config_to_start = ''
    world.cb_pid = get_cb_pid()
    world.bin_parms = None
Exemple #4
0
def check_cb_is_running(step):
    assert get_cb_pid() != '', 'The Context broker is not running'
def check_cb_is_running(step):
    assert get_cb_pid() != "", "The Context broker is not running"