Generation 1.1 .NET 10 ARM64 Server Runtime / ROBUST and Simulator .NET 10 ARM64 build + boot (push) Waiting to run
OpenGenesisLINK main - .NET 10 Build Gate / .NET 10 Windows x64 build (push) Waiting to run
NexVerse CI / Build NexVerse (push) Failing after 1m0s
NexVerse CI / NV dollar live database matrix (push) Failing after 16s
Generation 1 Stable and Updates source policy / release-policy (push) Successful in 17s
OpenGenesisLINK main - .NET 10 Build Gate / .NET 10 generated-project and server build (push) Successful in 1m36s
OpenGenesisLINK Generation 1 - Abgeschlossene Branches bereinigen / Abgeschlossene und nicht mehr benoetigte Branches entfernen (push) Successful in 27s
41 lines
1.6 KiB
Python
41 lines
1.6 KiB
Python
#!/usr/bin/env python3
|
|
"""Exercise private assembly generation with non-sensitive fixture values only."""
|
|
import importlib.util
|
|
import os
|
|
from pathlib import Path
|
|
import subprocess
|
|
import tempfile
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def load(name, path):
|
|
spec = importlib.util.spec_from_file_location(name, ROOT / path)
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
return module
|
|
|
|
|
|
def main():
|
|
builder = load("private_builder", "tools/ops/ogl-install-private-webdav-dll.py")
|
|
zip_packager = load("zip_packager", "tools/release/ogl_gen1_snapshot_zip.py")
|
|
stage_packager = load("stage_packager", "tools/gen11/stage_net10_runtime.py")
|
|
with tempfile.TemporaryDirectory(prefix="ogl-webdav-fixture-") as directory:
|
|
root = Path(directory)
|
|
builder.build_private_assembly(root, "fixture-user", "fixture-only-password")
|
|
fixture = root / builder.NAME
|
|
assert fixture.stat().st_mode & 0o777 == 0o600
|
|
assert not zip_packager.allowed(Path(builder.NAME))
|
|
assert not zip_packager.allowed(Path("nested") / builder.NAME.upper())
|
|
assert not stage_packager.allow_root(builder.NAME)
|
|
subprocess.run(["dotnet", "run", "--project",
|
|
str(ROOT / "tools/ci/WebDavBackupRegression/WebDavBackupRegression.csproj"),
|
|
"--configuration", "Release", "--",
|
|
"--private-fixture", str(fixture)], check=True)
|
|
print("Private WebDAV DLL packaging exclusions PASS")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
os.umask(0o077)
|
|
main()
|