Publish curated Unraid-AppOps-Gateway source from 965c416ebf041123a61bc54b20bde0ad09b9ccc3
This commit is contained in:
1 parent
1188c86539
commit
ef95b500d8
6 files changed
+23
-16
No files matched your search
@@ -1,3 +1,3 @@
|
|||||||
# Public source export
|
# Public source export
|
||||||
|
|
||||||
This source snapshot was generated from the private canonical repository at revision `50b3c135619d2d32304d515aa76903c6cb062eab`. It contains no private Git history or operational evidence. Changes are published from the canonical repository.
|
This source snapshot was generated from the private canonical repository at revision `965c416ebf041123a61bc54b20bde0ad09b9ccc3`. It contains no private Git history or operational evidence. Changes are published from the canonical repository.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"sourceRevision": "50b3c135619d2d32304d515aa76903c6cb062eab",
|
"sourceRevision": "965c416ebf041123a61bc54b20bde0ad09b9ccc3",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": ".dockerignore",
|
"path": ".dockerignore",
|
||||||
@@ -1024,8 +1024,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_deploy_broker.py",
|
"path": "backend/tests/test_deploy_broker.py",
|
||||||
"sha256": "40c290925c0569192973d858e5df36b91e3c5dd38ce638b9f19b0ca60e61903a",
|
"sha256": "5f7a8bd1724a81a5d7628f4b65e23687acb1a6af2ff5eb63e6d770d6e15914c0",
|
||||||
"bytes": 442136
|
"bytes": 442256
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_deployment_auto_rollback.py",
|
"path": "backend/tests/test_deployment_auto_rollback.py",
|
||||||
@@ -1429,8 +1429,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_projectbrain_delivery_revalidation.py",
|
"path": "backend/tests/test_projectbrain_delivery_revalidation.py",
|
||||||
"sha256": "d46946e8be179372c84adab6f56f57de27a4492db6d0edb73d75035a433c5b40",
|
"sha256": "7e3506a2e52d8ab1fe282541eae0e256c0ae0077a08bf958fb71102154d2c5c7",
|
||||||
"bytes": 57909
|
"bytes": 57983
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_prowlarr_connector.py",
|
"path": "backend/tests/test_prowlarr_connector.py",
|
||||||
@@ -1464,8 +1464,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_registered_legacy_followup_controller.py",
|
"path": "backend/tests/test_registered_legacy_followup_controller.py",
|
||||||
"sha256": "40cc28c34d6fdb57620809b6f19a6853f0ae41479f4d3052a601fcd561726535",
|
"sha256": "67d61b01a1b2ebd57ef723460c97b96a336ef5d6d82557223ebd138d9036715f",
|
||||||
"bytes": 7267
|
"bytes": 7309
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_registered_legacy_followup_core.py",
|
"path": "backend/tests/test_registered_legacy_followup_core.py",
|
||||||
@@ -1499,8 +1499,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_repopulse_adoption_effects.py",
|
"path": "backend/tests/test_repopulse_adoption_effects.py",
|
||||||
"sha256": "b9f9207ae5e006843fae10cc8d70b641a9be9f46572939a4bba5f520f57fe6a0",
|
"sha256": "2aae192532733a2360cd594adcaf18ba436ccb7bd24d34a0ad848aa74cd73dab",
|
||||||
"bytes": 39958
|
"bytes": 40113
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "backend/tests/test_repopulse_adoption_executor.py",
|
"path": "backend/tests/test_repopulse_adoption_executor.py",
|
||||||
|
|||||||
@@ -42,8 +42,10 @@ def _load_module(name: str, path: Path):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def deploy_module():
|
def deploy_module(monkeypatch, tmp_path):
|
||||||
return _load_module("appops_deploy_broker_test", BROKER_ROOT / "deploy.py")
|
module = _load_module("appops_deploy_broker_test", BROKER_ROOT / "deploy.py")
|
||||||
|
monkeypatch.setattr(module, "APPOPS_PROGRESS_ROOT", tmp_path / "progress")
|
||||||
|
return module
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ DELIVERY_SHA = "c" * 64
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def controller(monkeypatch):
|
def controller(monkeypatch, tmp_path):
|
||||||
module = _load_module(
|
module = _load_module(
|
||||||
"projectbrain_delivery_revalidation_test",
|
"projectbrain_delivery_revalidation_test",
|
||||||
BROKER_ROOT / "status_server.py",
|
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_signature_is_valid", lambda *_a, **_k: True)
|
||||||
monkeypatch.setattr(module, "_self_upgrade_secret", lambda: b"test-key-" + b"x" * 48)
|
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, "_require_controller_release", lambda: {"status": "ready"})
|
||||||
|
monkeypatch.setattr(module, "WEBHOOK_INBOX_ROOT", tmp_path)
|
||||||
return module
|
return module
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ from test_hub_component_transport import controller as _controller_fixture
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def deploy_module():
|
def deploy_module(monkeypatch, tmp_path):
|
||||||
return _deploy_fixture.__wrapped__()
|
return _deploy_fixture.__wrapped__(monkeypatch, tmp_path)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|||||||
import hashlib
|
import hashlib
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
@@ -446,7 +447,10 @@ def effects_env(tmp_path):
|
|||||||
def runtime_readable_scan_root():
|
def runtime_readable_scan_root():
|
||||||
# The pytest tmp_path parent is mode 0700 on Linux, so runtime UID 10001
|
# 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.
|
# 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 = Path(directory)
|
||||||
root.chmod(0o755)
|
root.chmod(0o755)
|
||||||
yield root
|
yield root
|
||||||
|
|||||||
Reference in new issue
Block a user