fix(ql3): canonicalize cutover docker socket

This commit is contained in:
whyour
2026-08-30 23:33:59 +08:00
parent 1b6523e93c
commit a03c94dc05
2 changed files with 28 additions and 6 deletions
@@ -208,6 +208,26 @@ test('materializes and offline-audits one closed two-image trial kit', (t) => {
cutoverRehearsalContents,
/mkdir[^\n]*data-directory\/transformation|for directory in[^\n]*data-directory\/transformation/,
);
assert.match(
cutoverRehearsalContents,
/docker_socket=\$\(realpath \/var\/run\/docker\.sock\)/,
);
assert.match(
cutoverRehearsalContents,
/operator_docker_socket=\/run\/docker\.sock/,
);
assert.match(
cutoverRehearsalContents,
/--mount "type=bind,src=\$docker_socket,dst=\$operator_docker_socket"/,
);
assert.match(
cutoverRehearsalContents,
/"dockerSocketPath":"\$operator_docker_socket"/,
);
assert.doesNotMatch(
cutoverRehearsalContents,
/"dockerSocketPath":"\/var\/run\/docker\.sock"|dst=\/var\/run\/docker\.sock/,
);
const report = auditLocalAlphaTrialKit({ bundleRoot: paths.outputRoot });
assert.equal(report.compatible, true);
assert.equal(report.sourceRevision, revision);