Publish curated Unraid-AppOps-Gateway source from 828f7274cafede223d37b2697367bfd89357b079
This commit is contained in:
1 parent
551de41e9f
commit
e49634bb10
7 files changed
+449
-24
No files matched your search
@@ -898,7 +898,7 @@ def test_model_rollback_rebinds_the_restored_live_proof(
|
||||
"appops_runtime_model": pointer,
|
||||
}
|
||||
reference = {**pointer, "liveRecordSha256": "d" * 64}
|
||||
calls = {"plain_snapshot": None, "binding": None, "recorded_receipt": None}
|
||||
calls = {"plain_snapshot": None, "binding": None, "recorded_receipt": None, "health_verified": False}
|
||||
|
||||
class StatusReader:
|
||||
@staticmethod
|
||||
@@ -924,7 +924,13 @@ def test_model_rollback_rebinds_the_restored_live_proof(
|
||||
lambda _project, observed_pointer: {"pointer": observed_pointer, "model": model},
|
||||
)
|
||||
monkeypatch.setattr(deploy, "_appops_select_effective_model", lambda *_args: None)
|
||||
monkeypatch.setattr(deploy, "verify_appops_legacy_runtime", lambda *_args, **_kwargs: None)
|
||||
def health(_project, *, expected_image_ids):
|
||||
assert expected_image_ids == {"Unraid-AppOps-Gateway": deploy.APPOPS_LEGACY_OLD_IMAGE_ID}
|
||||
calls["health_verified"] = True
|
||||
def verify_runtime(*_args, **_kwargs):
|
||||
assert calls["health_verified"] is True
|
||||
monkeypatch.setattr(deploy, "verify_containers", health)
|
||||
monkeypatch.setattr(deploy, "verify_appops_legacy_runtime", verify_runtime)
|
||||
monkeypatch.setattr(
|
||||
deploy, "_appops_captured_environment",
|
||||
lambda _container: {"KNOWLEDGE_OPTIMIZER_MODEL": "synthetic-model"},
|
||||
|
||||
Reference in new issue
Block a user