AddCustomer

4

tests

0

failures

0

ignored

0.293s

duration

100%

successful

Tests

Test Duration Result
customerAdmin_withoutAssumedRole_canNotAddCustomer() 0.093s passed
globalAdmin_withAssumedCustomerAdminRole_canNotAddCustomer() 0.079s passed
globalAdmin_withoutAssumedRole_canAddCustomer() 0.083s passed
invalidRequestBodyJson_raisesClientError() 0.038s passed

Standard output

2026-08-10T13:36:22.791Z  WARN 370 --- [-auto-3-exec-12] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T13:36:22.791Z ERROR 370 --- [-auto-3-exec-12] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((e560c9bd-2368-41d6-8f18-053795e2b689,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-10T13:36:22.879Z  WARN 370 --- [-auto-3-exec-13] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T13:36:22.879Z ERROR 370 --- [-auto-3-exec-13] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((d63dee17-c3fd-4cc7-a9ad-e244bffd0a74,0,90010,uuu,tst-customer_admin_uuu)) not allowed for current subjects {rbactest.customer#xxx:ADMIN} ({725210ac-f354-4c67-99fc-90795d8d43fd})
  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