AddCustomer

4

tests

0

failures

0

ignored

0.235s

duration

100%

successful

Tests

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

Standard output

2026-08-10T16:32:48.418Z  WARN 368 --- [-auto-3-exec-10] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T16:32:48.418Z ERROR 368 --- [-auto-3-exec-10] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((36303332-ce3a-47c2-a811-2cb8b014015b,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:32:48.469Z  WARN 368 --- [o-auto-3-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T16:32:48.469Z ERROR 368 --- [o-auto-3-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((385c7bf4-3401-4969-9ba6-ad035698302c,0,90010,uuu,tst-customer_admin_uuu)) not allowed for current subjects {rbactest.customer#xxx:ADMIN} ({8284d690-abf7-4b1e-9817-ccbbe97897fb})
  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