drop the manager socket, the no-op migrate branch and other ruth special cases
start_manager bound the same path register_agent binds. The migrate branch, hive-priv-sock::MANAGER_NAME and MANAGER_CONTAINER were no-ops or dead. The send allow-list docs promised a manager exemption the code never had. Tests that used ruth as the manager fixture use plain names.
This commit is contained in:
parent
df2394963a
commit
746c522f4e
1 changed files with 36 additions and 117 deletions
|
|
@ -296,7 +296,6 @@ async fn reload_gateway_nginx() {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::lifecycle::MANAGER_NAME;
|
||||
|
||||
// ── legacy mode (frontend_dir = None) ──────────────────────────────
|
||||
|
||||
|
|
@ -309,13 +308,10 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn render_includes_manager() {
|
||||
let names: Vec<String> = [MANAGER_NAME, "iris"]
|
||||
.iter()
|
||||
.map(|s| (*s).to_owned())
|
||||
.collect();
|
||||
fn render_includes_every_agent() {
|
||||
let names: Vec<String> = ["alice", "iris"].iter().map(|s| (*s).to_owned()).collect();
|
||||
let body = render(&names, None);
|
||||
assert!(body.contains(&format!("/agent/{MANAGER_NAME}/")));
|
||||
assert!(body.contains("/agent/alice/"));
|
||||
assert!(body.contains("/agent/iris/"));
|
||||
}
|
||||
|
||||
|
|
@ -461,13 +457,10 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn split_mode_includes_manager() {
|
||||
let names: Vec<String> = [MANAGER_NAME, "iris"]
|
||||
.iter()
|
||||
.map(|s| (*s).to_owned())
|
||||
.collect();
|
||||
fn split_mode_includes_every_agent() {
|
||||
let names: Vec<String> = ["alice", "iris"].iter().map(|s| (*s).to_owned()).collect();
|
||||
let body = render(&names, Some(FAKE_FRONTEND));
|
||||
assert!(body.contains(&format!("/agent/{MANAGER_NAME}/")));
|
||||
assert!(body.contains("/agent/alice/"));
|
||||
assert!(body.contains("/agent/iris/"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue