MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / sampleAgent

Function sampleAgent

internal/httpapi/operations_test.go:23–34  ·  view source on GitHub ↗

sampleAgent is the canonical fixture agent owned by user u_1.

()

Source from the content-addressed store, hash-verified

21
22// sampleAgent is the canonical fixture agent owned by user u_1.
23func 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

Callers 6

testServerFunction · 0.85
labelDepsFunction · 0.85
attTestServerFunction · 0.85
protectionServerFunction · 0.85
scopeTestServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected