Пример #1
0
def statfs_libcurve_dir_with_normal_user():
    rc = base_operate.statfs_libcurve_dir(config.dir_path, config.user_name)
    if rc < 0:
        logger.error("statfs libcurve dir fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
Пример #2
0
def statfs_libcurve_dir_with_root_user_and_no_password():
    rc = base_operate.statfs_libcurve_dir(config.dir_path, config.root_name,
                                          "")
    if rc < 0:
        logger.info("statfs libcurve dir fail. rc = %s" % rc)
        return rc
        #raise AssertionError
    else:
        return rc
Пример #3
0
def statfs_libcurve_dir_with_error_user_and_root_password():
    rc = base_operate.statfs_libcurve_dir(config.dir_path, "test",
                                          config.root_password)
    logger.info("statfs libcurve dir with error user and root password.")
    return rc
Пример #4
0
def statfs_libcurve_dir_with_error_user():
    rc = base_operate.statfs_libcurve_dir(config.dir_path, "test")
    logger.info("statfs libcurve dir with error user.")
    return rc
Пример #5
0
def statfs_libcurve_dir_with_no_user():
    rc = base_operate.statfs_libcurve_dir(config.dir_path, "")
    logger.info("statfs libcurve dir with no user.")
    return rc