Ignore ProPresenter API's harmless yellow warning
It flickers to "warning" every 15-20 minutes and made APPS blink for nothing. "ignore_warning" on a conn check keeps offline, error and disabled as alarms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -251,6 +251,18 @@ class TestChecks(unittest.TestCase):
|
||||
finally:
|
||||
stop.set()
|
||||
|
||||
def test_propresenter_yellow_warning_is_ignored(self):
|
||||
engine = sp.Engine(CONFIG)
|
||||
self.snap.conns["Propresenter-API"].update(category="warning", message="Socket closed")
|
||||
tiles, _ = run_steps(engine, self.snap, self.now, 5)
|
||||
self.assertEqual(tiles["apps"]["x"], "APPS\nOK")
|
||||
self.snap.conns["Propresenter-API"]["category"] = "error" # a real failure still alarms
|
||||
tiles, _ = run_steps(engine, self.snap, self.now + 6, 5)
|
||||
self.assertTrue(tiles["apps"]["x"].startswith("APPS\nPROPRES "), tiles["apps"]["x"])
|
||||
self.snap.conns["Propresenter-API"].update(category="warning", enabled=False) # switched off
|
||||
tiles, _ = run_steps(engine, self.snap, self.now + 12, 5)
|
||||
self.assertEqual(tiles["apps"]["x"], "APPS\nPROPRES DISABLED")
|
||||
|
||||
def test_shure_receivers_are_pinged_at_companions_address(self):
|
||||
chk = {"type": "ping", "conn": "Axient_1", "host": "10.1.1.101", "name": "AXIENT 1"}
|
||||
self.assertEqual(sp.ping_target(chk, self.snap), "10.1.1.101") # fallback
|
||||
|
||||
Reference in New Issue
Block a user