Forward-port lab3 SQLAlchemy and Alembic foundation
Carry source f591fa64e525679a31c9db7f942d36c789e1a12f forward from 72a1e57. Preserve lab4 attachment transactions, reconciliation locks, quarantine, and existing schema data through verified legacy adoption. Keep report and evidence work in progress untouched.
This commit is contained in:
@@ -9,7 +9,7 @@ from uuid import uuid4
|
||||
import httpx
|
||||
import pytest
|
||||
|
||||
from conftest import STARTUP_SECONDS, container, image, published
|
||||
from conftest import STARTUP_SECONDS, container, free_port, image, published
|
||||
from messenger.attachments.application.errors import ObjectMissingError
|
||||
from messenger.attachments.infrastructure.s3 import S3ObjectStorage, s3_client
|
||||
from messenger.shared.application.errors import Unavailable
|
||||
@@ -23,7 +23,7 @@ BUCKET = "messenger-attachments"
|
||||
def rustfs() -> Iterator[str]:
|
||||
name = f"mtusi-lab4-test-rustfs-{uuid4().hex[:8]}"
|
||||
keys = ["-e", f"RUSTFS_ACCESS_KEY={ROOT_KEY}", "-e", f"RUSTFS_SECRET_KEY={ROOT_SECRET}"]
|
||||
container(name, *keys, "-p", "127.0.0.1::9000", image(RUSTFS_IMAGE))
|
||||
container(name, *keys, "-p", f"127.0.0.1:{free_port()}:9000", image(RUSTFS_IMAGE))
|
||||
try:
|
||||
endpoint = f"http://127.0.0.1:{published(name, 9000)}"
|
||||
deadline = time.monotonic() + STARTUP_SECONDS
|
||||
|
||||
Reference in New Issue
Block a user