Harden production workflows and agent admission
This commit is contained in:
@@ -6,12 +6,23 @@ const now = new Date().toISOString();
|
||||
|
||||
const fixtures = {
|
||||
"/api/v1/health": { status: "ok" },
|
||||
"/api/v1/system-summary": {
|
||||
agents_online: 1,
|
||||
agents_offline: 1,
|
||||
checks_ok: 2,
|
||||
checks_warning: 1,
|
||||
checks_critical: 1,
|
||||
open_incidents: 2,
|
||||
generated_at: now,
|
||||
},
|
||||
"/api/v1/agents": {
|
||||
items: [
|
||||
{
|
||||
agent_id: "agent-1",
|
||||
hostname: "host-1",
|
||||
status: "alive",
|
||||
admission_state: "accepted",
|
||||
key_fingerprint: "1111111111111111",
|
||||
last_seen_at: now,
|
||||
features: { push: true, metrics: false },
|
||||
labels: { env: "dev", monlet_agent_version: "0.1.0" },
|
||||
@@ -20,6 +31,8 @@ const fixtures = {
|
||||
agent_id: "agent-2",
|
||||
hostname: "host-2",
|
||||
status: "dead",
|
||||
admission_state: "accepted",
|
||||
key_fingerprint: "2222222222222222",
|
||||
last_seen_at: now,
|
||||
features: { push: true, metrics: false },
|
||||
labels: {},
|
||||
@@ -31,6 +44,8 @@ const fixtures = {
|
||||
agent_id: "agent-1",
|
||||
hostname: "host-1",
|
||||
status: "alive",
|
||||
admission_state: "accepted",
|
||||
key_fingerprint: "1111111111111111",
|
||||
last_seen_at: now,
|
||||
features: { push: true, metrics: false },
|
||||
labels: { env: "dev", monlet_agent_version: "0.1.0" },
|
||||
|
||||
Reference in New Issue
Block a user