Watch
0
0
Fork
You've already forked hyperhive
0

swarm-wire: take agent_schedules's wire types

This commit is contained in:
atlas 2026-10-18 12:33:35 +02:00 • committed by mara
commit e111807f59

View file

@ -881,7 +881,7 @@ mod tests {
// The read reaches only this bucket.
for other in [
swarm_wire::agent_inference::direct_get_subject("atlas"),
swarm_queue_client::agent_schedules::direct_get_subject("atlas"),
swarm_wire::agent_schedules::direct_get_subject("atlas"),
"$JS.API.DIRECT.GET.KV_hive-wanted-beta.$KV.hive-wanted-beta.beta".to_owned(),
] {
assert!(!may(&other), "hive alpha may publish {other}");
@ -2012,7 +2012,7 @@ mod tests {
/// and no way to open, watch or write the bucket.
#[test]
fn an_agent_may_read_only_its_own_schedule_key() {
use swarm_queue_client::agent_schedules::{STREAM, direct_get_subject, key_subject};
use swarm_wire::agent_schedules::{STREAM, direct_get_subject, key_subject};
let p = policy()
.with_agent_token_subjects(vec![
@ -2078,7 +2078,7 @@ mod tests {
format!("$JS.API.STREAM.INFO.{STREAM}"),
format!("$JS.API.CONSUMER.CREATE.{STREAM}"),
key_subject("atlas"),
swarm_queue_client::agent_schedules::direct_get_subject("atlas"),
swarm_wire::agent_schedules::direct_get_subject("atlas"),
] {
assert!(
!atlas.publish.iter().any(|g| covers(g, &refused)),