feat: implement S3 attachments and presigned uploads

This commit is contained in:
sinveria
2026-11-10 12:08:50 +03:00
parent aaa834e412
commit d96d4a2836
50 changed files with 3138 additions and 72 deletions
+30
View File
@@ -0,0 +1,30 @@
import os
import runpy
import subprocess
import sys
bash = r"C:\Program Files\Git\bin\bash.exe"
original_popen = subprocess.Popen
def compatible_popen(args, **kwargs):
if isinstance(args, (list, tuple)) and len(args) == 1:
args = [bash, args[0]]
return original_popen(args, **kwargs)
subprocess.Popen = compatible_popen
sys.path.insert(0, os.path.abspath("tests"))
mode = sys.argv[1] if len(sys.argv) > 1 else "failover"
if mode not in ("persistence", "failover"):
raise SystemExit("Mode must be persistence or failover")
sys.argv = [
"tests/resilience.py",
"--mode", mode,
"--action-script",
"scripts/restart.sh" if mode == "persistence" else "scripts/stop-one.sh",
"--base-url", "http://localhost:8080",
]
runpy.run_path("tests/resilience.py", run_name="__main__")