test(19.6.1-03): screens test env and the superuser flag rule over HTTP

- administrators_harness_test.go: newScreensEnv with extra plugins, seedAdmin,
  seedRole, login, isolateSuperusers, row snapshots and error decoders; the
  harness moved out of backend_screens_smoke_test.go and gained cleanup
- export_test.go: SuperuserLockKey for the last-superuser race
- TestAdministratorsSuperuserFlag (D-05) through the assembled handler
This commit is contained in:
Jakub Zych
2026-10-22 11:54:48 +02:00
parent 1aaa8a444c
commit 536ea8c1bf
4 changed files with 686 additions and 244 deletions

View File

@@ -102,3 +102,8 @@ func IsReorderStale(err error) bool {
var stale reorderStale
return errors.As(err, &stale)
}
// SuperuserLockKey is the advisory lock key guardLastSuperuser takes. The
// last-superuser race tests hold it in a transaction of their own, so both
// racing requests queue on it before either counts the other superusers.
const SuperuserLockKey = superuserLockKey