fix: reconcile configured APT effect without retroactive acceptance and retain host reboot evidence
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 20:00:20 +01:00
parent 34d695a778
commit b08734065a
26 changed files with 2006 additions and 36 deletions
+2
View File
@@ -73,6 +73,7 @@ function checkAction(p, expected) {
await page.getByLabel('Begründung', { exact: true }).fill(expected.request.reason);
await page.getByRole('button', { name: 'Plan erstellen · noch keine Ausführung' }).click();
await detail.locator('pre').waitFor(); const plan = JSON.parse(await detail.locator('pre').innerText());
assert(JSON.parse(Buffer.from(plan.plan_payload_bytes)).reason === expected.request.reason);
assert(plan.jobs.length === 1); checkAction(plan.jobs[0].payload, expected);
assert(crypto.createHash('sha256').update(Buffer.from(plan.plan_payload_bytes)).digest('hex') === plan.plan_hash);
await detail.getByRole('button', { name: 'Antrag absenden · pending_approval' }).click();
@@ -88,6 +89,7 @@ function checkAction(p, expected) {
assert(pending.approval_state === 'pending_approval' && pending.job_count === 0 && pending.execution_state === null);
await op.getByRole('button', { name: 'Unveränderlichen Plan zur Prüfung öffnen' }).click();
const plan = JSON.parse(await detail.locator('pre').innerText());
assert(JSON.parse(Buffer.from(plan.plan_payload_bytes)).reason === expected.request.reason);
// Submission changes request metadata, never the fixed plan bytes/jobs.
// Require the new pending state explicitly and compare EVERY other field.
const { approval_state: currentState, ...currentPlan } = plan;