Пример #1
0
def rename_libcurve_file_with_root_user_and_no_password():
    rc = base_operate.rename_libcurve_file(config.old_name, config.new_name,
                                           config.root_name, "")
    if rc < 0:
        logger.info("rename libcurve file fail. rc = %s" % rc)
        return rc
        #raise AssertionError
    else:
        return rc
Пример #2
0
def rename_libcurve_file_with_normal_user_and_password():
    rc = base_operate.rename_libcurve_file(config.old_name_with_parent,
                                           config.new_name_with_parent,
                                           config.user_name, config.pass_word)
    if rc < 0:
        logger.error("rename libcurve file fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
Пример #3
0
def rename_libcurve_file_with_error_user_and_root_password():
    rc = base_operate.rename_libcurve_file(config.old_name, config.new_name,
                                           "test", config.root_password)
    logger.info("rename libcurve file with error user and root password.")
    return rc
Пример #4
0
def rename_libcurve_file_with_error_user():
    rc = base_operate.rename_libcurve_file(config.old_name, config.new_name,
                                           "test")
    logger.info("rename libcurve file with error user.")
    return rc
Пример #5
0
def rename_libcurve_file_with_no_user():
    rc = base_operate.rename_libcurve_file(config.old_name, config.new_name,
                                           "")
    logger.info("rename libcurve file with no user.")
    return rc