agent permissions: drop the test-only direct_get_subject; the failed-creation test names the refusing step
This commit is contained in:
parent
89013b5408
commit
0e7aa74d00
3 changed files with 19 additions and 15 deletions
|
|
@ -856,8 +856,11 @@ mod tests {
|
|||
/// no other, and writes none.
|
||||
#[test]
|
||||
fn a_hive_reads_every_agents_permissions_and_an_agent_only_its_own() {
|
||||
use swarm_queue_client::agent_permissions::{STREAM, direct_get_subject, key_subject};
|
||||
use swarm_queue_client::agent_permissions::{STREAM, key_subject};
|
||||
|
||||
let direct_get_subject = |agent: &str| {
|
||||
format!("$JS.API.DIRECT.GET.KV_agent-permissions.$KV.agent-permissions.{agent}")
|
||||
};
|
||||
let p = policy()
|
||||
.with_agent_token_subjects(vec![
|
||||
"$JS.API.DIRECT.GET.KV_agent-permissions.$KV.agent-permissions.{agent}".to_owned(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue