chore(test): bump testcontainers Postgres to 17-alpine

\`make doctor\` 实测远程 Aliyun RDS = PostgreSQL 17.9。把
backend/tests/fixtures/postgres.py 的 testcontainers 镜像从
postgres:16-alpine 调到 postgres:17-alpine,与生产对齐。

同步把 STATUS.md "RDS 大版本对齐" 项标 done。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1445043649
2026-05-11 17:29:16 +08:00
parent ad22242ecc
commit 7f17cb8fee
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -37,7 +37,9 @@ def postgres_container():
pytest.skip(f"testcontainers[postgres] not installed: {exc}")
try:
with PostgresContainer("postgres:16-alpine") as pg:
# Image tag aligned with the production Aliyun RDS (PostgreSQL 17.9
# confirmed by `make doctor` 2026-05-11). Bump together with RDS upgrades.
with PostgresContainer("postgres:17-alpine") as pg:
yield pg
except Exception as exc: # pragma: no cover - environment-dependent
# DockerException, ConnectionError, etc. — surface a skip rather than