Detect containerized dashboard update management
This commit is contained in:
@@ -775,7 +775,7 @@ class TestUpdateCheckEndpoint:
|
||||
def test_hosted_dashboard_is_not_applyable(self, monkeypatch):
|
||||
import hermes_cli.web_server as ws
|
||||
|
||||
monkeypatch.setattr(ws, "_dashboard_hosted_agent_mode", lambda: True)
|
||||
monkeypatch.setattr(ws, "_dashboard_local_update_managed_externally", lambda: True)
|
||||
monkeypatch.setattr(
|
||||
ws,
|
||||
"detect_install_method",
|
||||
@@ -785,11 +785,11 @@ class TestUpdateCheckEndpoint:
|
||||
)
|
||||
|
||||
body = self.client.get("/api/hermes/update/check").json()
|
||||
assert body["install_method"] == "hosted"
|
||||
assert body["install_method"] == "managed-runtime"
|
||||
assert body["can_apply"] is False
|
||||
assert body["update_available"] is False
|
||||
assert body["behind"] is None
|
||||
assert "hosted agent service" in body["message"]
|
||||
assert "managed outside this dashboard" in body["message"]
|
||||
|
||||
def test_check_failure_is_soft(self, monkeypatch):
|
||||
import hermes_cli.web_server as ws
|
||||
|
||||
Reference in New Issue
Block a user