fix: correct API endpoints in verification scripts

This commit is contained in:
Apple
2025-11-30 14:51:59 -08:00
parent 6d4f9ec7c5
commit 5c1d7d15f9
2 changed files with 44 additions and 76 deletions

View File

@@ -168,7 +168,7 @@ def check_node_exists(client: APIClient, node_id: str, results: CheckResults):
"""Перевірити що нода існує і має базові метрики"""
inv_name = f"Node exists: {node_id}"
data, error = client.get(f"/internal/node/{node_id}/metrics/current")
data, error = client.get(f"/city/internal/node/{node_id}/metrics/current")
if error:
results.failed.append(InvariantResult(
@@ -288,7 +288,7 @@ def check_node_metrics(client: APIClient, node_id: str, metrics: Dict, results:
def check_node_agents(client: APIClient, node_id: str, results: CheckResults):
"""Перевірити Node Guardian та Steward"""
data, error = client.get(f"/internal/node/{node_id}/agents")
data, error = client.get(f"/city/internal/node/{node_id}/agents")
if error:
results.failed.append(InvariantResult(
@@ -354,7 +354,7 @@ def check_node_agents(client: APIClient, node_id: str, results: CheckResults):
def check_dagi_router(client: APIClient, node_id: str, results: CheckResults):
"""Перевірити DAGI Router стан"""
data, error = client.get(f"/internal/node/{node_id}/dagi-router/agents")
data, error = client.get(f"/city/internal/node/{node_id}/dagi-router/agents")
if error:
results.warnings.append(InvariantResult(
@@ -442,7 +442,7 @@ def check_core_agents_prompts(client: APIClient, results: CheckResults):
agent_ids = [a["slug"] for a in CORE_AGENTS]
# Batch check prompts status
data, error = client.post("/internal/agents/prompts/status", {"agent_ids": agent_ids})
data, error = client.post("/city/internal/agents/prompts/status", {"agent_ids": agent_ids})
if error:
results.warnings.append(InvariantResult(
@@ -526,7 +526,7 @@ def check_healthz(client: APIClient, results: CheckResults):
def check_node_self_healing(client: APIClient, node_id: str, results: CheckResults):
"""Перевірити self-healing статус ноди"""
data, error = client.get(f"/internal/node/{node_id}/self-healing/status")
data, error = client.get(f"/city/internal/node/{node_id}/self-healing/status")
if error:
results.warnings.append(InvariantResult(
@@ -580,7 +580,7 @@ def check_node_self_healing(client: APIClient, node_id: str, results: CheckResul
def check_nodes_needing_healing(client: APIClient, results: CheckResults):
"""Перевірити чи є ноди, які потребують healing"""
data, error = client.get("/internal/nodes/needing-healing")
data, error = client.get("/city/internal/nodes/needing-healing")
if error:
results.warnings.append(InvariantResult(