swarm-wire: take agent_schedules's wire types
This commit is contained in:
parent
9cce9c470f
commit
e111807f59
8 changed files with 170 additions and 162 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue