def extend_libcurve_file_with_root_user_and_no_password(): rc = base_operate.extend_libcurve_file(config.file_name, config.root_name, config.new_size, "") if rc < 0: logger.info("extend libcurve file fail. rc = %s" % rc) return rc #raise AssertionError else: return rc
def extend_libcurve_file_with_normal_user_and_password(): rc = base_operate.extend_libcurve_file(config.file_name, config.user_name, config.new_size, config.root_password) if rc < 0: logger.error("extend libcurve file fail. rc = %s" % rc) raise AssertionError else: return rc
def extend_libcurve_file_with_error_user_and_root_password(): rc = base_operate.extend_libcurve_file(config.file_name, "test", config.new_size, config.root_password) logger.info("extend libcurve file with error user and root password.") return rc
def extend_libcurve_file_with_error_user(): rc = base_operate.extend_libcurve_file(config.file_name, "test", config.new_size) logger.info("extend libcurve file with error user.") return rc