Compare commits

..

2 Commits

Author SHA1 Message Date
Michael Hoennig
8b777077a7 fix missing schema prefixes 2024-09-16 09:15:03 +02:00
Michael Hoennig
cfb1a17a2e fix ArchitectureTest rbac sub-packages 2024-09-16 09:01:13 +02:00
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ commit;
set hsadminng.tx_history_txid to '';
set hsadminng.tx_history_timestamp to '2024-08-29 12:42';
-- all versions
select tx_history_txid(), txc.txtimestamp, txc.currentSubject, txc.currentTask, haex.*
select base.tx_history_txid(), txc.txtimestamp, txc.currentSubject, txc.currentTask, haex.*
from hs_hosting_asset_ex haex
join base.tx_context txc on haex.txid=txc.txid
where haex.identifier = 'test@thi.example.org';

View File

@ -33,7 +33,7 @@ $$
userId uuid;
result bool;
BEGIN
userId = findRbacSubject('superuser-alex@hostsharing.net');
userId = rbac.findRbacSubject('superuser-alex@hostsharing.net');
result = (SELECT * FROM rbac.isPermissionGrantedToSubject(rbac.findPermissionId('package', 94928, 'add-package'), userId));
IF (result) THEN
RAISE EXCEPTION 'expected permission NOT to be granted, but it is';

View File

@ -68,11 +68,11 @@ public class ArchitectureTest {
"..mapper",
"..ping",
"..rbac",
"..rbac.generator",
"..rbac.subject",
"..rbac.rbacgrant",
"..rbac.rbacrole",
"..rbac.rbacobject",
"..rbac.rbacdef",
"..rbac.grant",
"..rbac.role",
"..rbac.object",
"..stringify"
// ATTENTION: Don't simply add packages here, also add arch rules for the new package!
);