test(album,cabana,pier,surf,admin): add Phase 37 test suites and fail-closed check-phase37.sh gate

This commit is contained in:
Jakub Zych
2026-11-27 13:57:11 +01:00
parent e8133367f0
commit a672c1aa9e
11 changed files with 3030 additions and 2 deletions

View File

@@ -1167,9 +1167,9 @@ func newConformEnv(t *testing.T) *conformEnv {
login := "conform-" + stamp
insertAdmin(t, gdb, login, login+"@example.test", adminTestPassword, true, false)
// The Plugins screen needs backend.view_plugins, which no role holds.
// Mail image routes need either mail permission (conform is not a superuser).
// Mail image and Media Library routes need their respective permissions (conform is not a superuser).
if err := gdb.Exec(`UPDATE backend_users SET permissions = ? WHERE login = ?`,
`{"backend.view_plugins":1,"system.manage_mail_templates":1,"system.manage_mail_layouts":1}`, login).Error; err != nil {
`{"backend.view_plugins":1,"system.manage_mail_templates":1,"system.manage_mail_layouts":1,"media.view_media":1,"media.manage_media":1}`, login).Error; err != nil {
t.Fatal(err)
}