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.

Scope private helper checks and retain audit retry diagnostics

pulse-triage[bot]4bcca1a100f6
diff --git a/scripts/tests/test_agent_docs.py b/scripts/tests/test_agent_docs.py
index aa950c56de..c3e79a8b8c 100644
--- a/scripts/tests/test_agent_docs.py
+++ b/scripts/tests/test_agent_docs.py
@@ -173,7 +173,8 @@ class AgentDocsTest(unittest.TestCase):
self.assertEqual(result.returncode, expected, result.stderr.decode())
if expected == 0:
self.assertEqual((home / ".config/pulse" / output).read_bytes(), b"# harmless installer fixture\n")
- self.assertEqual(stat.S_IMODE((home / ".config/pulse" / output).stat().st_mode), 0o600)
+ if name == NAMES[1]:
+ self.assertEqual(stat.S_IMODE((home / ".config/pulse" / output).stat().st_mode), 0o600)
elif name == NAMES[1]:
self.assertFalse((home / ".config/pulse" / output).exists(),
"a failed temporary download must not become the cleanup helper")
diff --git a/scripts/tests/test_npm_audit_retry.py b/scripts/tests/test_npm_audit_retry.py
index ea17e7306d..5f96e9699f 100755
--- a/scripts/tests/test_npm_audit_retry.py
+++ b/scripts/tests/test_npm_audit_retry.py
@@ -206,7 +206,7 @@ class NpmAuditRetryTest(unittest.TestCase):
with self.subTest(require=require):
result, calls = self.run_check("vulnerability", "all", require=require)
self.assertEqual(result.returncode, 1, result.stdout)
- self.assertEqual(calls, ["audit --json"])
+ self.assertEqual(calls, ["audit --json"], result.stdout + result.stderr)
self.assertIn("::error::", result.stdout)
self.assertNotIn("::warning::", result.stdout)