Publish curated Unraid-AppOps-Gateway source from 965c416ebf041123a61bc54b20bde0ad09b9ccc3

This commit is contained in:
Public Source Publisher committed 2026-10-10 19:04:10 +00:00
1 parent 1188c86539
commit ef95b500d8
6 files changed
+23 -16

No files matched your search

+4 -2
View File
@@ -42,8 +42,10 @@ def _load_module(name: str, path: Path):
@pytest.fixture
def deploy_module():
return _load_module("appops_deploy_broker_test", BROKER_ROOT / "deploy.py")
def deploy_module(monkeypatch, tmp_path):
module = _load_module("appops_deploy_broker_test", BROKER_ROOT / "deploy.py")
monkeypatch.setattr(module, "APPOPS_PROGRESS_ROOT", tmp_path / "progress")
return module
@pytest.fixture
@@ -26,7 +26,7 @@ DELIVERY_SHA = "c" * 64
@pytest.fixture
def controller(monkeypatch):
def controller(monkeypatch, tmp_path):
module = _load_module(
"projectbrain_delivery_revalidation_test",
BROKER_ROOT / "status_server.py",
@@ -34,6 +34,7 @@ def controller(monkeypatch):
monkeypatch.setattr(module, "_self_upgrade_signature_is_valid", lambda *_a, **_k: True)
monkeypatch.setattr(module, "_self_upgrade_secret", lambda: b"test-key-" + b"x" * 48)
monkeypatch.setattr(module, "_require_controller_release", lambda: {"status": "ready"})
monkeypatch.setattr(module, "WEBHOOK_INBOX_ROOT", tmp_path)
return module
@@ -8,8 +8,8 @@ from test_hub_component_transport import controller as _controller_fixture
@pytest.fixture
def deploy_module():
return _deploy_fixture.__wrapped__()
def deploy_module(monkeypatch, tmp_path):
return _deploy_fixture.__wrapped__(monkeypatch, tmp_path)
@pytest.fixture
@@ -3,6 +3,7 @@ from __future__ import annotations
import hashlib
import importlib.util
import json
import os
import re
import sys
import tempfile
@@ -446,7 +447,10 @@ def effects_env(tmp_path):
def runtime_readable_scan_root():
# The pytest tmp_path parent is mode 0700 on Linux, so runtime UID 10001
# cannot traverse it even when the leaf scan directories are mode 0755.
with tempfile.TemporaryDirectory(prefix="repopulse-scan-") as directory:
# A private TMPDIR must not override the public Linux parent needed by UID 10001.
with tempfile.TemporaryDirectory(
prefix="repopulse-scan-", dir="/tmp" if os.name == "posix" else None,
) as directory:
root = Path(directory)
root.chmod(0o755)
yield root