use super::target_resolution::StartupPlan;
use super::unit::UnitSpec;
use super::*;
use crate::cli::Init;
use std::ffi::OsString;
use std::path::{Path, PathBuf};
pub(super) fn plan_for_test(home: &Path) -> StartupPlan {
StartupPlan {
init: Init::Systemd,
spec: UnitSpec {
user: "deploy".to_string(),
exec: PathBuf::from("/usr/local/bin/shep"),
home: home.to_path_buf(),
path: OsString::from("/usr/local/bin:/usr/bin:/bin"),
working_dir: PathBuf::from("/home/deploy"),
},
unit_path: home.with_file_name("shep-deploy.service"),
label: unit::launchd_label("deploy"),
sudo_user: None,
own_default_home: None,
}
}