holger-recipe/tests/console_path.rs
//! **C7: the primary's console lives at `/login`** — Gunnar's console path
//! (gunnar-front `LOGIN_PAGES`, `/login` first). The front serves holger-ui's console
//! on its :443 with the login page at `/login` (`holger-ui-server`); the primary's front
//! page draws its console button only when `HOLGER_CONSOLE_PATH` names that path. Main
//! and twin boot one identical medium, so every box medium carries it; the keep medium
//! (an in-place upgrade) keeps it.
use holger_recipe::packaging::{installer, keep_installer, metered_installer, BOX_CONSOLE_PATH};
#[test]
fn every_holger_box_medium_sets_the_console_path_to_login() {
assert_eq!(BOX_CONSOLE_PATH, "/login");
for m in [installer(), metered_installer(), keep_installer()] {
assert_eq!(
m.env.get("HOLGER_CONSOLE_PATH").map(String::as_str),
Some("/login"),
"{}: {:?}",
m.name,
m.env
);
}
}