test: lock in the PostgreSQL 18.6 container criteria (E00-S03-T01)
CI / Frozen lockfile install (pull_request) Successful in 43s
CI / Secrets not embedded (E00-S02-T08) (pull_request) Successful in 29s
CI / Compose config (E00-S03-T01) (pull_request) Successful in 24s

- compose-config.test.mjs: assertDbService requires the pinned
  postgres:18.6-bookworm image; new docker-gated real-stack probe starts the
  stack and asserts SHOW server_version exposes 18.6; mutation probe proves
  reverting to a floating major tag fails the criterion; parser probe updated
- build-targets.test.mjs: db-service mutation fixture updated to the pinned
  image tag
This commit is contained in:
implementer
2026-08-29 10:45:00 +00:00
parent 4cd68c9193
commit a78ffea4c5
2 changed files with 56 additions and 6 deletions
+2 -2
View File
@@ -345,8 +345,8 @@ test('a platforms list on the db service (which has no build config) cannot sati
const dbOnly = text
.replace(/\n\s*platforms:\n(?:\s*- [^\n]+\n)+/, '\n')
.replace(
' image: postgres:18-bookworm\n',
' image: postgres:18-bookworm\n platforms:\n - linux/amd64\n - linux/arm64\n',
' image: postgres:18.6-bookworm\n',
' image: postgres:18.6-bookworm\n platforms:\n - linux/amd64\n - linux/arm64\n',
);
assert.notEqual(dbOnly, text, 'the mutation must actually move the platforms list onto db');
assert.throws(() => assertBuildTargets(parseYaml(dbOnly)), /platforms/);