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.

Check both fenced and inline ZFS permission recipes

pulse-triage[bot]2209c65e8cfc
diff --git a/scripts/tests/test_pve_backup_troubleshooting_docs.py b/scripts/tests/test_pve_backup_troubleshooting_docs.py
index 4aa88a12da..7359a6f7e3 100644
--- a/scripts/tests/test_pve_backup_troubleshooting_docs.py
+++ b/scripts/tests/test_pve_backup_troubleshooting_docs.py
@@ -167,7 +167,10 @@ class ZFSMonitoringDocsTest(unittest.TestCase):
self.assertIn(boundary, text)
def test_zfs_guide_has_no_permission_or_recovery_mutation_recipe(self):
- commands = "\n".join(re.findall(r"`([^`]+)`", ZFS_DOC.read_text()))
+ text = ZFS_DOC.read_text()
+ fenced = re.findall(r"```(?:bash|sh)\n(.*?)```", text, re.DOTALL)
+ inline = re.findall(r"(?<!`)`([^`\n]+)`(?!`)", text)
+ commands = "\n".join(fenced + inline)
self.assertNotRegex(commands, r"\bpveum\b|aclmod|--privsep|\bsudo\b|"
r"systemctl\s+(?:restart|stop)|"
r"zpool\s+(?:scrub|clear|export|import|replace)")