mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-07 08:57:12 +00:00
1.5 KiB
1.5 KiB
Agent Registration Journey
Goal
Validate the agent registration flow end-to-end: an agent sends its first report, Pulse registers the agent, the agent appears in the unified state API, and the agent is visible in the infrastructure UI.
Steps
- Login — Authenticate as admin via the Pulse UI or API.
- Register agent — Send a POST to
/api/agents/agent/reportwith a synthetic unified agent report payload containingagent.type = "unified"plus hostname, OS info, CPU, memory, disks, and network interfaces. - Verify API state — GET
/api/stateand confirm the new agent appears in the canonicalresources[]collection as anagentresource with correct hostname, platform, and OS metadata. - Verify metrics — Confirm the agent's CPU usage and memory metrics are populated on that unified resource entry.
- Send follow-up report — POST a second report with different CPU/memory
values and verify
lastSeenupdates. - Verify UI — Navigate to
/infrastructureand confirm the agent's hostname or display name is visible on the page. - Delete agent — DELETE
/api/agents/agent/{agentId}and verify the agent is removed from/api/stateresources[].
Success Criteria
- Agent report returns
{ success: true, agentId: "..." }. - Agent appears in
/api/stateresources[]with correct metadata. - Agent is visible on the infrastructure page in the browser.
- After deletion, agent no longer appears in state.