stop writing and attaching per-agent and per-hive bao policies
This commit is contained in:
parent
eac7f2a7c1
commit
139007e656
1 changed files with 253 additions and 419 deletions
|
|
@ -106,12 +106,12 @@ mod tests {
|
|||
}
|
||||
|
||||
/// The path sits under the same prefix an agent's policy grants
|
||||
/// (`policy::render_agent`'s stanza is `swarm/agents/<agent>/*`), which is
|
||||
/// (`policy::render_shared_agent`'s stanza is `swarm/agents/<entity name>/*`), which is
|
||||
/// what makes an agent able to read its own identity back.
|
||||
#[test]
|
||||
fn an_agents_identity_is_inside_its_own_policy_stanza() {
|
||||
let path = identity_path("atlas").expect("legal");
|
||||
let document = crate::policy::render_agent("atlas").expect("legal");
|
||||
let document = crate::policy::effective_agent("atlas");
|
||||
let prefix = format!("{}/data/swarm/agents/atlas/", crate::path::MOUNT);
|
||||
assert!(
|
||||
path.starts_with("swarm/agents/atlas/"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue