Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Bind node API recipe controls to the add-node specimen

pulse-triage[bot]b65ff95fe231
diff --git a/scripts/tests/test_node_api_docs.py b/scripts/tests/test_node_api_docs.py
index 15010eeb9c..0c40582948 100644
--- a/scripts/tests/test_node_api_docs.py
+++ b/scripts/tests/test_node_api_docs.py
@@ -33,7 +33,8 @@ def preparation() -> str:
def sample() -> dict:
- blocks = re.findall(r"```json\n(.*?)```", section(), re.DOTALL)
+ add_node = section().split("### Add Node\n", 1)[1].split("\n### ", 1)[0]
+ blocks = re.findall(r"```json\n(.*?)```", add_node, re.DOTALL)
if len(blocks) != 1:
raise AssertionError("expected one node configuration specimen")
return json.loads(blocks[0])