test: lock in the PostgreSQL 18.6 container criteria (E00-S03-T01)
- 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:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user