codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[test]
fn claims_drive_policy_user() {
    let claims = JwtClaims {
        subject: Some("user-1".into()),
        roles: vec!["viewer".into()],
        scopes: vec!["agent:read".into()],
        tenant_id: Some("tenant-1".into()),
        auth_source: Some("api_key".into()),
        topics: vec![],
    };
    let user = from_claims(&claims);
    assert_eq!(user.roles, vec!["viewer".to_string()]);
    assert_eq!(user.auth_source, "api_key");
}