Exemple #1
0
def test_log_upload(session_setup, module_setup):
    logger_init(os.path.join(get_data_root(), 'log'))
    app_data_folder = write_preferences('testnode', get_test_upload_root(),
                                        'test_key')
    latus.logger.set_appdata_folder(app_data_folder)
    latus.logger.set_console_log_level(logging.INFO)
    latus.logger.log.error('test_upload_error_message')
Exemple #2
0
def get_move_root():
    return os.path.join(get_data_root(), "test_move")
Exemple #3
0
def get_simple_root():
    return os.path.join(get_data_root(), "test_simple")
Exemple #4
0
def get_subdir_root():
    return os.path.join(get_data_root(), "subdir")
Exemple #5
0
def get_sequential_root():
    return os.path.join(get_data_root(), "test_sequential")
def get_node_db_retries_root():
    retries_root = os.path.join(get_data_root(), 'temp')
    if not os.path.exists(retries_root):
        os.makedirs(retries_root)
    return retries_root
def get_start_first_root():
    return os.path.join(get_data_root(), "start_first")
Exemple #8
0
def get_start_first_root():
    return os.path.join(get_data_root(), "start_first")
def get_move_into_latus_root():
    return os.path.join(get_data_root(), test_name)
Exemple #10
0
def get_test_upload_root():
    return os.path.join(get_data_root(), "test_upload")
Exemple #11
0
def get_delete_root():
    return os.path.join(get_data_root(), "delete")
Exemple #12
0
def get_move_root():
    return os.path.join(get_data_root(), "test_move")
Exemple #13
0
def get_move_out_of_latus_root():
    return os.path.join(get_data_root(), "move_out_of_latus")
Exemple #14
0
def test_log_upload():
    logger_init(os.path.join(get_data_root(), 'log'))
    app_data_folder = write_preferences('testnode', get_test_upload_root(), 'test_key')
    latus.logger.set_appdata_folder(app_data_folder)
    latus.logger.set_console_log_level(logging.INFO)
    latus.logger.log.error('test_upload_error_message')
Exemple #15
0
def get_create_modify_delete_root():
    return os.path.join(get_data_root(), "test_create_modify_delete")
Exemple #16
0
def get_test_upload_root():
    return os.path.join(get_data_root(), "test_upload")
def get_move_into_latus_root():
    return os.path.join(get_data_root(), "move_into_latus")
def get_create_modify_delete_root():
    return os.path.join(get_data_root(), "test_create_modify_delete")
Exemple #19
0
def get_sequential_root():
    return os.path.join(get_data_root(), "test_sequential")
Exemple #20
0
def get_subdir_root():
    return os.path.join(get_data_root(), "subdir")
Exemple #21
0
def get_gui_preferences_root():
    return os.path.join(get_data_root(), "test_gui_preferences")
def get_move_out_of_latus_root():
    return os.path.join(get_data_root(), "move_out_of_latus")
Exemple #23
0
def get_delete_root():
    return os.path.join(get_data_root(), "delete")
Exemple #24
0
def get_simple_root():
    return os.path.join(get_data_root(), "test_simple")
Exemple #25
0
def get_node_db_retries_root():
    retries_root = os.path.join(get_data_root(), 'temp')
    if not os.path.exists(retries_root):
        os.makedirs(retries_root)
    return retries_root