Publish curated Unraid-AppOps-Gateway source from 21729207a161d87393cfb73e79582bc373aa19cf

This commit is contained in:
Public Source Publisher committed 2026-10-08 01:20:28 +00:00
1 parent ab3fa553f0
commit 76d7249b5e
6 files changed
+1497 -37

No files matched your search

@@ -81,6 +81,25 @@ def test_windows_wrapper_supplies_private_archive_and_exact_image_identity():
assert '[[ "$archive_parent" =~ ^/tmp/itworx-controller-artifact-promoter-' in installer
def test_observed_runner_tag_recovery_switch_is_fixed_and_prepare_only():
wrapper = (ROOT / "scripts/upgrade_deployment_controller.ps1").read_text(encoding="utf-8")
installer = (ROOT / "scripts/upgrade_deployment_controller.sh").read_text(encoding="utf-8")
preparer = (ROOT / "scripts/prepare_controller_hub_release_volume.py").read_text(encoding="utf-8")
assert "[switch]$AllowObservedRunnerTagDrift" in wrapper
assert '$recoveryArgument = if ($AllowObservedRunnerTagDrift)' in wrapper
assert "--allow-observed-runner-tag-drift" in wrapper
assert "OBSERVED_RUNNER_IMAGE_REF = 'docker.gitea.com/runner-images:ubuntu-latest'" in preparer
assert "--allow-observed-runner-tag-drift)" in installer
assert "recovery_arguments+=(--allow-observed-runner-tag-drift)" in installer
prepare_start = installer.index('backup="$(python3 "${work}/${PREPARER_NAME}" prepare')
prepare_stop = installer.index('python3 "${work}/${PREPARER_NAME}" stop --backup "$backup"')
prepare_command = installer[prepare_start:prepare_stop]
assert '"${recovery_arguments[@]}"' in prepare_command
assert "parser.add_argument('--allow-observed-runner-tag-drift', action='store_true')" in preparer
assert "if args.allow_observed_runner_tag_drift and args.operation != 'prepare':" in preparer
def test_state_reconciliation_is_committed_only_after_volume_verification():
installer = (ROOT / "scripts/upgrade_deployment_controller.sh").read_text(encoding="utf-8")
verify = installer.index('python3 "${work}/${PREPARER_NAME}" verify --backup "$backup"')