fix(16.3-03): expect 32 CSRF-gated admin routes after token API
Account token create/revoke added two state-changing mounts; update the Phase 10 CSRF walk count so the release gate inventory stays green. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -66,14 +66,15 @@ func TestPhase10CSRF(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// refresh, logout, account update, avatar upload and remove, markdown preview, settings put, create, bulk-delete, bulk action,
|
// refresh, logout, account update, avatar upload and remove, account
|
||||||
// widget action, toolbar action, update, delete, record action, link,
|
// token create and revoke, markdown preview, settings put, create,
|
||||||
// unlink, file
|
// bulk-delete, bulk action, widget action, toolbar action, update,
|
||||||
// upload, file reorder, file caption, file remove, relation child
|
// delete, record action, link, unlink, file upload, file reorder, file
|
||||||
// create, update and delete, pivot update, child file upload, reorder,
|
// caption, file remove, relation child create, update and delete, pivot
|
||||||
// caption and remove, plugin field type upload
|
// update, child file upload, reorder, caption and remove, plugin field
|
||||||
if unsafe != 30 {
|
// type upload
|
||||||
t.Fatalf("walked %d state-changing routes, want 30: %v", unsafe, router.order)
|
if unsafe != 32 {
|
||||||
|
t.Fatalf("walked %d state-changing routes, want 32: %v", unsafe, router.order)
|
||||||
}
|
}
|
||||||
|
|
||||||
loginHandler := router.handlers[login]
|
loginHandler := router.handlers[login]
|
||||||
|
|||||||
Reference in New Issue
Block a user