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

Function TestHandleAgentActivity_AgentNotFound

internal/auth/auth_test.go:61–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestHandleAgentActivity_AgentNotFound(t *testing.T) {
62 ua, _, token := setupUserAuth(t)
63
64 req := authedRequest("GET", "/api/dashboard/agents/agent%40nonexistent.example.com/activity", token)
65 w := httptest.NewRecorder()
66 ua.HandleAgentActivity(w, req)
67
68 if w.Code != http.StatusNotFound {
69 t.Errorf("status = %d, want 404", w.Code)
70 }
71}
72
73func TestHandleAgentActivity_NotOwned(t *testing.T) {
74 ua, store, token := setupUserAuth(t)

Callers

nothing calls this directly

Calls 3

setupUserAuthFunction · 0.85
authedRequestFunction · 0.85
HandleAgentActivityMethod · 0.80

Tested by

no test coverage detected