feat(hub): enforce license requirement for fleet auto-updates while keeping server upstream check free
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 2m4s

This commit is contained in:
2026-10-04 01:27:55 +02:00
parent 285360b59f
commit 6b2b39b080
4 changed files with 50 additions and 20 deletions
+4 -4
View File
@@ -323,12 +323,12 @@ class TestServerLicensingAndWebUI(unittest.TestCase):
conn.commit()
conn.close()
# WebUI should render update controls and community status
# WebUI should render locked banner and disabled update controls
resp = Server.serve_webui()
html = resp.body.decode("utf-8")
self.assertIn("Fleet Distribution & Auto-Update Policy", html)
self.assertIn("COMMUNITY / UNRESTRICTED", html)
self.assertIn("autoUpdateEnabledRadio", html)
self.assertIn("Fleet Auto-Update is Inactive & Locked", html)
self.assertIn("ENTERPRISE LICENSE REQUIRED", html)
self.assertIn("disabled", html)
def test_json_lic_package_import(self):
"""Verifies importing an activated .lic JSON package via /api/license/import."""