AddCustomer

4

tests

0

failures

0

ignored

0.302s

duration

100%

successful

Tests

Test Duration Result
customerAdmin_withoutAssumedRole_canNotAddCustomer() 0.077s passed
globalAdmin_withAssumedCustomerAdminRole_canNotAddCustomer() 0.070s passed
globalAdmin_withoutAssumedRole_canAddCustomer() 0.104s passed
invalidRequestBodyJson_raisesClientError() 0.051s passed

Standard output

2026-08-10T16:40:55.504Z  WARN 369 --- [-auto-3-exec-11] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T16:40:55.504Z ERROR 369 --- [-auto-3-exec-11] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((8f9805a4-78e2-4b1f-8fe9-62fab922e163,0,90010,uuu,tst-customer_admin_uuu)) not allowed for current subjects {tst-customer_admin_yyy} ({66d24856-c629-53d5-82cc-c68d765eeb55})
  Where: PL/pgSQL function rbactest.customer_insert_permission_check_tf() line 10 at RAISE
SQL statement "insert
            into rbactest.customer (uuid, version, reference, prefix, adminusername)
            values (new.uuid, new.version, new.reference, new.prefix, new.adminusername)
            returning *"
PL/pgSQL function rbactest.customer_instead_of_insert_tf() line 5 at SQL statement
2026-08-10T16:40:55.582Z  WARN 369 --- [o-auto-3-exec-6] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T16:40:55.582Z ERROR 369 --- [o-auto-3-exec-6] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((62d8855f-cbe0-4d43-b2f0-9b6891838571,0,90010,uuu,tst-customer_admin_uuu)) not allowed for current subjects {rbactest.customer#xxx:ADMIN} ({cd05b5b5-6a33-42ee-8400-81ea3dc2522a})
  Where: PL/pgSQL function rbactest.customer_insert_permission_check_tf() line 10 at RAISE
SQL statement "insert
            into rbactest.customer (uuid, version, reference, prefix, adminusername)
            values (new.uuid, new.version, new.reference, new.prefix, new.adminusername)
            returning *"
PL/pgSQL function rbactest.customer_instead_of_insert_tf() line 5 at SQL statement