(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func 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 | |
| 73 | func TestHandleAgentActivity_NotOwned(t *testing.T) { |
| 74 | ua, store, token := setupUserAuth(t) |
nothing calls this directly
no test coverage detected