Publish curated Unraid-AppOps-Gateway source from f8f5bf0a29159bd69accd7e58f6427ec32140640

This commit is contained in:
Public Source Publisher committed 2026-10-02 17:21:36 +00:00
1 parent 2de6e5c85e
commit 27a33107a3
4 files changed
+105 -8

No files matched your search

@@ -4,7 +4,6 @@ import re
import shlex
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
@@ -16,13 +15,30 @@ def test_windows_wrapper_archives_every_file_required_by_root_installer():
archived = re.search(r"& git archive --format=tar .*? \$SourceRevision (.*?)\r?\n", wrapper)
assert required is not None and archived is not None
archive_paths = set(shlex.split(archived.group(1)))
required_paths = shlex.split(required.group(1))
assert all(
path in archive_paths
or any(path.startswith(f"{directory}/") for directory in archive_paths)
for path in shlex.split(required.group(1))
for path in required_paths
)
vendor_sources = sorted(
path.relative_to(ROOT).as_posix()
for path in (ROOT / "scripts/vendor").rglob("*")
if path.is_file() and (path.suffix == ".py" or path.name == "pyyaml-LICENSE")
)
required_vendor_sources = sorted(
path for path in required_paths if path.startswith("scripts/vendor/")
)
assert vendor_sources == required_vendor_sources
assert "scripts/prepare_controller_hub_release_volume.py" in archived.group(1)
assert "scripts/upgrade_deployment_controller.sh" in archived.group(1)
assert "scripts/vendor" in archived.group(1)
assert "scripts/vendor/pyyaml-LICENSE" in required.group(1)
assert "scripts/vendor/yaml/__init__.py" in required.group(1)
assert 'mkdir -m 0700 "${work}/vendor" "${work}/vendor/yaml"' in installer
assert '"${work}/vendor/yaml/${vendor_file}"' in installer
assert ('[[ -d "${script_dir}/vendor" && ! -L "${script_dir}/vendor" && '
'-d "${script_dir}/vendor/yaml" && ! -L "${script_dir}/vendor/yaml" ]]') in installer
def test_windows_wrapper_supplies_private_archive_and_exact_image_identity():