derive an agent's backend hosts into the egress allow list at the controller
This commit is contained in:
parent
4f32948a97
commit
c5a876b845
1 changed files with 950 additions and 25 deletions
|
|
@ -52,3 +52,13 @@ test("the body is swarm-wide or for the agent, with the name trimmed", () => {
|
|||
agent: "atlas",
|
||||
});
|
||||
});
|
||||
|
||||
test("a derived entry is counted as automatic, not as the operator's own", () => {
|
||||
const derived = { domain: "llm.example.com", agent: "atlas", derived: true };
|
||||
assert.equal(
|
||||
allowedSummary([...entriesFor(all, "atlas"), derived]),
|
||||
"1 swarm-wide, 2 for this agent, 1 automatic",
|
||||
);
|
||||
assert.equal(allowedSummary([derived]), "1 automatic");
|
||||
assert.deepEqual(entriesFor([derived], "atlas"), [derived]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue