CreateCustomer

3

tests

0

failures

0

ignored

0.032s

duration

100%

successful

Tests

Test Duration Result
customerAdmin_withoutAssumedRole_cannotCreateNewCustomer() 0.006s passed
globalAdmin_withAssumedCustomerRole_cannotCreateNewCustomer() 0.008s passed
globalAdmin_withoutAssumedRole_canCreateNewCustomer() 0.018s passed

Standard output

2026-08-10T15:07:08.025Z  INFO 380 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.rbac.test.cust.TestCustomerRepositoryIntegrationTest$CreateCustomer]: CreateCustomer does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T15:07:08.029Z  INFO 380 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.rbac.test.cust.TestCustomerRepositoryIntegrationTest$CreateCustomer
Hibernate: call base.defineContext(
    cast(? as varchar(127)),
    cast(? as text),
    cast(? as varchar(63)),
    cast(? as text),
    cast(? as text));

Hibernate: select count(*) from rbactest.customer_rv tce1_0
Hibernate: insert into rbactest.customer_rv (adminusername,prefix,reference,version,uuid) values (?,?,?,?,?)
Hibernate: select tce1_0.uuid,tce1_0.adminusername,tce1_0.prefix,tce1_0.reference,tce1_0.version from rbactest.customer_rv tce1_0 where tce1_0.uuid=?
Hibernate: select count(*) from rbactest.customer_rv tce1_0
Hibernate: call base.defineContext(
    cast(? as varchar(127)),
    cast(? as text),
    cast(? as varchar(63)),
    cast(? as text),
    cast(? as text));

Hibernate: insert into rbactest.customer_rv (adminusername,prefix,reference,version,uuid) values (?,?,?,?,?)
2026-08-10T15:07:08.056Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:08.056Z ERROR 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((b3407c27-4308-4ffa-8181-2f9f06a4d4c4,0,90001,www,tst-customer_admin_www)) not allowed for current subjects {rbactest.customer#xxx:ADMIN} ({5797b807-0f2b-4bfb-9ce0-5c18881b2edf})
  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
Hibernate: call base.defineContext(
    cast(? as varchar(127)),
    cast(? as text),
    cast(? as varchar(63)),
    cast(? as text),
    cast(? as text));

Hibernate: insert into rbactest.customer_rv (adminusername,prefix,reference,version,uuid) values (?,?,?,?,?)
2026-08-10T15:07:08.064Z  WARN 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:08.064Z ERROR 380 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] insert into rbactest.customer values((b2ae764c-172f-4ebf-9d28-4021a771f61b,0,90001,www,tst-customer_admin_www)) not allowed for current subjects {tst-customer_admin_xxx} ({ad4d933d-d53c-52ae-89b2-97027d5a68c7})
  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