sampleAgent is the canonical fixture agent owned by user u_1.
()
| 21 | |
| 22 | // sampleAgent is the canonical fixture agent owned by user u_1. |
| 23 | func sampleAgent() identity.AgentIdentity { |
| 24 | return identity.AgentIdentity{ |
| 25 | ID: "support@acme.com", |
| 26 | Domain: "acme.com", |
| 27 | Name: "Acme Support", |
| 28 | DomainVerified: true, |
| 29 | UserID: "u_1", |
| 30 | CreatedAt: time.Unix(1700000000, 0).UTC(), |
| 31 | HITLTTLSeconds: 604800, |
| 32 | HITLExpirationAction: "reject", |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // testServer builds a Server with fake collaborators and a sentinel legacy |
| 37 | // handler, returning an httptest server so tests exercise the real chi+Huma |
no outgoing calls
no test coverage detected