mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 01:08:56 +01:00
Align watchdog, API, and TrueNAS Help with poll lifecycle fixes
Document four monitoring-progress and poll-lifecycle fixes landed on main across the unclaimed in-app Help guides and their mirrored public copies, with source-bound Python regression tests: - docs/AVAILABILITY.md and docs/API.md (+ mirrors): document external watchdog recovery and replacement truthfulness (#5226), including immediate clearing of Monitoring stalled (monitor_stalled) on fresh monitoring progress, synchronous clearing of lastSuccessAt and lastAttemptAt on URL replacement/removal/invalid save (while preserving lastSuccessAt when re-saving the same URL), and cycle fencing on shutdown or config replacement. - docs/API.md (+ mirror): document monitor-local staleness scores in GET /api/monitoring/scheduler/health (#5234) and paused Proxmox VE passive cluster-discovery skipping in GET /api/config/nodes (#5251). - docs/TRUENAS.md (+ mirror): document retiring-connection poller ownership retirement and in-flight RPC cancellation including blocked socket negotiation (#5239). - scripts/tests/test_watchdog_help_docs.py, test_scheduler_health_api_help_docs.py, test_node_api_docs.py, and test_truenas_docs.py: bind each documented behaviour directly to its live Go runtime source. Contract-Neutral: Documentation, mirrored Help, and Python doc-regression test alignment for already-landed runtime behaviour; no runtime, API, schema, or subsystem contract changes. Change-source: pulse-maintainer
This commit is contained in:
@@ -187,6 +187,16 @@ class NodeAPIDocsTest(unittest.TestCase):
|
||||
self.assertIn('--output "$result_file"', helper)
|
||||
self.assertNotIn('--retry', helper)
|
||||
|
||||
def test_paused_pve_passive_discovery_skip_matches_handler_source(self):
|
||||
handlers = (ROOT / "internal/api/configapi/config_handlers.go").read_text(encoding="utf-8")
|
||||
self.assertIn("if current == nil || current.Disabled {", handlers)
|
||||
prose = " ".join(section().split())
|
||||
self.assertIn(
|
||||
"Listing saved nodes returns retained configuration for paused Proxmox VE connections without running passive cluster discovery probes",
|
||||
prose,
|
||||
)
|
||||
self.assertIn("explicit tests and active discovery stay unchanged", prose)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user