Publish curated Unraid-AppOps-Gateway source from 0f89e1506065c5365c48968b1d7845d666a18be8

This commit is contained in:
Public Source Publisher committed 2026-10-09 18:15:18 +00:00
1 parent 3eed2d6657
commit a0d1a1224a
8 files changed
+152 -31

No files matched your search

@@ -34,8 +34,9 @@ def compose_config_root(monkeypatch, tmp_path):
@pytest.mark.parametrize("operation", ["config", "stop", "up"])
@pytest.mark.parametrize("source_directory", [False, True])
def test_compose_uses_private_ephemeral_cli_config_with_readonly_root(
monkeypatch, tmp_path, operation,
monkeypatch, tmp_path, operation, source_directory,
):
directories = []
@@ -57,12 +58,15 @@ def test_compose_uses_private_ephemeral_cli_config_with_readonly_root(
assert arguments[-1] == operation
assert arguments[arguments.index("--env-file") + 1] == "/dev/null"
assert arguments[arguments.index("-f") + 1] == "-"
assert ("--profile" in arguments) is (source_directory and operation == "config")
if "--profile" in arguments:
assert arguments[arguments.index("--profile") + 1] == "runner"
(directory / "generated-client-state").write_bytes(b"private-client-state")
return b"ok"
monkeypatch.setattr(module, "_run", run)
for _ in range(2):
assert module._compose([operation], b"captured-private-compose") == b"ok"
assert module._compose([operation], b"captured-private-compose", source_directory=source_directory) == b"ok"
assert directories[0] != directories[1]
assert all(not directory.exists() for directory in directories)