Publish curated Unraid-AppOps-Gateway source from 0ea6f267c28d51ac7113e6d943c89857d3a189ab

This commit is contained in:
Public Source Publisher committed 2026-10-09 23:00:51 +00:00
1 parent 9b94d8d0f5
commit 9787d16330
4 files changed
+214 -6

No files matched your search

@@ -217,3 +217,20 @@ def test_modern_promoter_21_binds_actual_installed_19_without_widening_bootstrap
assert labels["itworx.controller.bootstrap.target.version"] == "2.1.19"
assert labels["itworx.controller.bootstrap.target.id"] == "c" * 64
assert labels["itworx.controller.bootstrap.target.tree"] == "d" * 40
def test_modern_promoter_preserves_exact_current_21_predecessor_for_reader_correction():
from backend.app.services.controller_artifact_promoter import helper_container_spec
actual_revision = "c61e0e1e292914893b40354f904f23dd9fd4a958"
spec = helper_container_spec(
revision="a" * 40, image_id="sha256:" + "b" * 64,
current_controller_id="c" * 64, current_controller_revision=actual_revision,
current_controller_tree="d" * 40, current_controller_version="2.1.21",
)
labels = spec["Labels"]
assert labels["itworx.controller.version"] == "2.1.21"
assert labels["itworx.controller.bootstrap.target.version"] == "2.1.21"
assert labels["itworx.controller.bootstrap.target.revision"] == actual_revision
assert labels["itworx.controller.bootstrap.target.id"] == "c" * 64
assert labels["itworx.controller.bootstrap.target.tree"] == "d" * 40