mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 12:05:27 +08:00
test(ql3): expose cutover reconciliation evidence
This commit is contained in:
@@ -280,6 +280,8 @@ phase 'stop target and prove rollback candidate'
|
|||||||
run_deploy cutover-target-stop target-stop.json target-stop.result.json
|
run_deploy cutover-target-stop target-stop.json target-stop.result.json
|
||||||
printf '%s' 'QingLong Local Alpha target-stop result: ' >&2
|
printf '%s' 'QingLong Local Alpha target-stop result: ' >&2
|
||||||
sed -n '1p' "$rehearsal_root/results/target-stop.result.json" >&2
|
sed -n '1p' "$rehearsal_root/results/target-stop.result.json" >&2
|
||||||
|
printf '%s' 'QingLong Local Alpha target-stop evidence: ' >&2
|
||||||
|
sed -n '1p' "$rehearsal_root/service/cutovers/alpha-upgrade-cutover/0006-target-stop-outcome.json" >&2
|
||||||
grep -q '"reconciliation":"rollback_candidate"' "$rehearsal_root/results/target-stop.result.json" || fail 'target stop did not produce a clean rollback candidate'
|
grep -q '"reconciliation":"rollback_candidate"' "$rehearsal_root/results/target-stop.result.json" || fail 'target stop did not produce a clean rollback candidate'
|
||||||
[ "$(sha256sum "$legacy_root/db/database.sqlite" | sed 's/ .*//')" = "$legacy_sha256" ] || fail 'legacy database changed during rehearsal'
|
[ "$(sha256sum "$legacy_root/db/database.sqlite" | sed 's/ .*//')" = "$legacy_sha256" ] || fail 'legacy database changed during rehearsal'
|
||||||
|
|
||||||
|
|||||||
@@ -272,6 +272,10 @@ test('materializes and offline-audits one closed two-image trial kit', (t) => {
|
|||||||
cutoverRehearsalContents,
|
cutoverRehearsalContents,
|
||||||
/QingLong Local Alpha target-stop result:/,
|
/QingLong Local Alpha target-stop result:/,
|
||||||
);
|
);
|
||||||
|
assert.match(
|
||||||
|
cutoverRehearsalContents,
|
||||||
|
/QingLong Local Alpha target-stop evidence:/,
|
||||||
|
);
|
||||||
const report = auditLocalAlphaTrialKit({ bundleRoot: paths.outputRoot });
|
const report = auditLocalAlphaTrialKit({ bundleRoot: paths.outputRoot });
|
||||||
assert.equal(report.compatible, true);
|
assert.equal(report.compatible, true);
|
||||||
assert.equal(report.sourceRevision, revision);
|
assert.equal(report.sourceRevision, revision);
|
||||||
|
|||||||
Reference in New Issue
Block a user