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.

Keep the staging-failure fixture's menu answer in caller scope

pulse-triage[bot]7ee03281c008
diff --git a/scripts/tests/test_server_installer_stop.py b/scripts/tests/test_server_installer_stop.py
index 6697b0a394..6053837e29 100644
--- a/scripts/tests/test_server_installer_stop.py
+++ b/scripts/tests/test_server_installer_stop.py
@@ -116,9 +116,9 @@ resolve_latest_release_tag_for_channel() { echo v6.6.0; }
read_configured_update_channel() { echo stable; }
run_upgrade_readiness_preflight() { return 0; }
safe_read() {
- local choice=1
- [[ "$FLOW" != reinstall ]] || choice=2
- printf -v "$2" '%s' "$choice"
+ local selection=1
+ [[ "$FLOW" != reinstall ]] || selection=2
+ printf -v "$2" '%s' "$selection"
}
curl() { return 0; }
download_pulse() { echo 'staging failed' >&2; exit 42; }
@@ -193,7 +193,7 @@ class ServerInstallerStopTest(unittest.TestCase):
for flow in ("version", "update", "reinstall"):
with self.subTest(flow=flow):
observation = self.exercise(STAGING_FAILURE, flow, "active")
- self.assertEqual(observation["result"].returncode, 42)
+ self.assertEqual(observation["result"].returncode, 42, observation["result"].stderr)
self.assertEqual(observation["files"], observation["originals"])
self.assertNotRegex(observation["calls"], r"(?m)^stop\b")