fix: reconcile configured APT effect without retroactive acceptance and retain host reboot evidence
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user