Publish curated Unraid-AppOps-Gateway source from 4e5a8f24881de4bde2ef649d3bf3817715241e9d

This commit is contained in:
Public Source Publisher committed 2026-10-10 23:22:07 +00:00
1 parent 8cfe39ea37
commit 627bc6a1b6
5 files changed
+586 -20

No files matched your search

@@ -116,11 +116,11 @@ def test_observed_hugetlb_inventory_and_legacy_records_remain_finite(
expected = result
error = "cgroup_family_result_invalid"
else:
# Actual schema-v3 parser, including absent legacy-DinD state and its
# unchanged provenance, validates both historical and current inventories.
# The current schema retains absent legacy-DinD provenance and accepts
# only the finite controller inventories, independently of journal age.
backup = specialize._SPECIALIZED_BACKUP_ROOT / "specialized-finite-fixture"
journal = {
"schemaVersion": 3, "status": "in_progress", "stage": "prepared",
"schemaVersion": 4, "status": "in_progress", "stage": "prepared",
"sourceScriptSha256": specialize._APPROVED_SCRIPT_SHA256,
"sourceRevision": "a" * 40, "sourceTree": "b" * 40,
"createdAt": "2026-10-10T00:00:00Z", "updatedAt": "2026-10-10T00:00:00Z",
@@ -130,7 +130,8 @@ def test_observed_hugetlb_inventory_and_legacy_records_remain_finite(
"originalDind": {"present": False, "running": False, "restartPolicy": "no", "imageId": None},
"guardFiles": [], "guardMarkers": {}, "cgroupCreated": False,
"cgroupEnsurePending": False, "cgroupFamilyInitiallyPresent": False,
"cgroupRootSubtree": controllers, "newRegistrationIds": {},
"cgroupRootSubtree": controllers, "cgroupDindBinding": None,
"newRegistrationIds": {},
"imageManifestSha256": None, "buildProbe": None,
}
monkeypatch.setattr(specialize, "_read_json_file", lambda *args, **kwargs: journal)
@@ -140,6 +141,14 @@ def test_observed_hugetlb_inventory_and_legacy_records_remain_finite(
error = "journal_invalid"
if accepted:
assert read() == expected
if boundary == "journal":
journal["schemaVersion"] = 3
with pytest.raises(specialize.RunnerFleetSpecializeError, match=error):
read()
journal["schemaVersion"] = 4
del journal["cgroupDindBinding"]
with pytest.raises(specialize.RunnerFleetSpecializeError, match=error):
read()
else:
with pytest.raises(specialize.RunnerFleetSpecializeError, match=error):
read()