PsycefulApiApplicationTests

1

tests

0

failures

0

ignored

0.982s

duration

100%

successful

Tests

Test Duration Result
contextLoads() 0.982s passed

Standard output

23:06:01.411 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.psyceful.psyceful_api.PsycefulApiApplicationTests]: PsycefulApiApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
23:06:01.922 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.psyceful.psyceful_api.PsycefulApiApplication for test class com.psyceful.psyceful_api.PsycefulApiApplicationTests

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.4.2)

2025-05-18T23:06:03.385Z  INFO 4760 --- [psyceful_api] [    Test worker] c.p.p.PsycefulApiApplicationTests        : Starting PsycefulApiApplicationTests using Java 21.0.7 with PID 4760 (started by jenkins in /home/jenkins/workspace/psyceful-api-build)
2025-05-18T23:06:03.388Z  INFO 4760 --- [psyceful_api] [    Test worker] c.p.p.PsycefulApiApplicationTests        : The following 1 profile is active: "test"
2025-05-18T23:06:06.127Z  INFO 4760 --- [psyceful_api] [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-05-18T23:06:06.501Z  INFO 4760 --- [psyceful_api] [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 318 ms. Found 5 JPA repository interfaces.
2025-05-18T23:06:08.779Z  INFO 4760 --- [psyceful_api] [    Test worker] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2025-05-18T23:06:08.942Z  INFO 4760 --- [psyceful_api] [    Test worker] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.6.5.Final
2025-05-18T23:06:09.071Z  INFO 4760 --- [psyceful_api] [    Test worker] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2025-05-18T23:06:10.098Z  INFO 4760 --- [psyceful_api] [    Test worker] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-05-18T23:06:10.338Z  INFO 4760 --- [psyceful_api] [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2025-05-18T23:06:10.982Z  INFO 4760 --- [psyceful_api] [    Test worker] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:testdb user=PSYCEFUL_TEST
2025-05-18T23:06:10.992Z  INFO 4760 --- [psyceful_api] [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2025-05-18T23:06:11.086Z  WARN 4760 --- [psyceful_api] [    Test worker] org.hibernate.orm.deprecation            : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2025-05-18T23:06:11.193Z  INFO 4760 --- [psyceful_api] [    Test worker] org.hibernate.orm.connections.pooling    : HHH10001005: Database info:
	Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
	Database driver: undefined/unknown
	Database version: 2.3.232
	Autocommit mode: undefined/unknown
	Isolation level: undefined/unknown
	Minimum pool size: undefined/unknown
	Maximum pool size: undefined/unknown
Hibernate: 
    create global temporary table HTE_users(activated boolean, enabled boolean, rn_ integer not null, created_at timestamp(6), id bigint, updated_at timestamp(6), email varchar(255), firstname varchar(255), lastname varchar(255), password varchar(255), primary key (rn_)) TRANSACTIONAL
Hibernate: 
    create global temporary table HT_patients(id bigint not null, primary key (id)) TRANSACTIONAL
Hibernate: 
    create global temporary table HTE_patients(activated boolean, enabled boolean, rn_ integer not null, created_at timestamp(6), id bigint, updated_at timestamp(6), email varchar(255), firstname varchar(255), lastname varchar(255), password varchar(255), primary key (rn_)) TRANSACTIONAL
Hibernate: 
    create global temporary table HT_practitioners(id bigint not null, primary key (id)) TRANSACTIONAL
Hibernate: 
    create global temporary table HTE_practitioners(activated boolean, enabled boolean, rn_ integer not null, created_at timestamp(6), id bigint, updated_at timestamp(6), email varchar(255), firstname varchar(255), lastname varchar(255), password varchar(255), primary key (rn_)) TRANSACTIONAL
Hibernate: 
    create global temporary table HTE_tokens(rn_ integer not null, created_at timestamp(6), expire_at timestamp(6), id bigint, user_id bigint, validate_at timestamp(6), token varchar(255), type varchar(255), primary key (rn_)) TRANSACTIONAL
Hibernate: 
    create global temporary table HTE_roles(rn_ integer not null, id bigint, name varchar(255), primary key (rn_)) TRANSACTIONAL
Hibernate: 
    create global temporary table HT_users(id bigint not null, primary key (id)) TRANSACTIONAL
2025-05-18T23:06:15.849Z  INFO 4760 --- [psyceful_api] [    Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
Hibernate: 
    create table patients (
        id bigint not null,
        primary key (id)
    )
Hibernate: 
    create table practitioners (
        id bigint not null,
        primary key (id)
    )
Hibernate: 
    create table practitioners_patients (
        practitioners_id bigint not null,
        patients_id bigint not null,
        primary key (practitioners_id, patients_id)
    )
Hibernate: 
    create table roles (
        id bigint not null,
        name varchar(255),
        primary key (id)
    )
Hibernate: 
    create table tokens (
        id bigint not null,
        created_at timestamp(6),
        expire_at timestamp(6),
        token varchar(255),
        type varchar(255),
        validate_at timestamp(6),
        user_id bigint not null,
        primary key (id)
    )
Hibernate: 
    create table users (
        id bigint not null,
        activated boolean not null,
        created_at timestamp(6),
        email varchar(255) not null,
        enabled boolean,
        firstname varchar(255),
        lastname varchar(255),
        password varchar(255) not null,
        updated_at timestamp(6),
        primary key (id)
    )
Hibernate: 
    create table users_roles (
        users_id bigint not null,
        roles_id bigint not null,
        primary key (users_id, roles_id)
    )
Hibernate: 
    alter table if exists roles 
       drop constraint if exists UKofx66keruapi6vyqpv6f2or37
Hibernate: 
    alter table if exists roles 
       add constraint UKofx66keruapi6vyqpv6f2or37 unique (name)
Hibernate: 
    alter table if exists tokens 
       drop constraint if exists UKlgokc3vw1rct83pdwryntacb9
Hibernate: 
    alter table if exists tokens 
       add constraint UKlgokc3vw1rct83pdwryntacb9 unique (user_id)
Hibernate: 
    alter table if exists users 
       drop constraint if exists UK6dotkott2kjsp8vw4d0m25fb7
Hibernate: 
    alter table if exists users 
       add constraint UK6dotkott2kjsp8vw4d0m25fb7 unique (email)
Hibernate: 
    create sequence roles_seq start with 1 increment by 50
Hibernate: 
    create sequence tokens_seq start with 1 increment by 50
Hibernate: 
    create sequence users_seq start with 1 increment by 50
Hibernate: 
    alter table if exists patients 
       add constraint FKn8xphvlp05nd3ydg0p1rbdaom 
       foreign key (id) 
       references users
Hibernate: 
    alter table if exists practitioners 
       add constraint FK7ffk81b0l26drj25rqbap07fk 
       foreign key (id) 
       references users
Hibernate: 
    alter table if exists practitioners_patients 
       add constraint FK8w7m6pin7p3atojrh8oo1ge37 
       foreign key (patients_id) 
       references patients
Hibernate: 
    alter table if exists practitioners_patients 
       add constraint FK327hlju4lgdkqc0ubte3hs5wd 
       foreign key (practitioners_id) 
       references practitioners
Hibernate: 
    alter table if exists tokens 
       add constraint FK2dylsfo39lgjyqml2tbe0b0ss 
       foreign key (user_id) 
       references users 
       on delete cascade
Hibernate: 
    alter table if exists users_roles 
       add constraint FKa62j07k5mhgifpp955h37ponj 
       foreign key (roles_id) 
       references roles
Hibernate: 
    alter table if exists users_roles 
       add constraint FKml90kef4w2jy7oxyqv742tsfc 
       foreign key (users_id) 
       references users
2025-05-18T23:06:16.114Z  INFO 4760 --- [psyceful_api] [    Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2025-05-18T23:06:18.084Z  INFO 4760 --- [psyceful_api] [    Test worker] o.s.d.j.r.query.QueryEnhancerFactory     : Hibernate is in classpath; If applicable, HQL parser will be used.
2025-05-18T23:06:19.828Z  INFO 4760 --- [psyceful_api] [    Test worker] eAuthenticationProviderManagerConfigurer : Global AuthenticationManager configured with AuthenticationProvider bean with name authenticationProvider
2025-05-18T23:06:19.830Z  WARN 4760 --- [psyceful_api] [    Test worker] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with an AuthenticationProvider bean. UserDetailsService beans will not be used by Spring Security for automatically configuring username/password login. Consider removing the AuthenticationProvider bean. Alternatively, consider using the UserDetailsService in a manually instantiated DaoAuthenticationProvider. If the current configuration is intentional, to turn off this warning, increase the logging level of 'org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer' to ERROR
2025-05-18T23:06:20.053Z  WARN 4760 --- [psyceful_api] [    Test worker] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2025-05-18T23:06:21.768Z DEBUG 4760 --- [psyceful_api] [    Test worker] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with filters: DisableEncodeUrlFilter, WebAsyncManagerIntegrationFilter, SecurityContextHolderFilter, HeaderWriterFilter, CorsFilter, LogoutFilter, JwtAuthFilter, RequestCacheAwareFilter, SecurityContextHolderAwareRequestFilter, AnonymousAuthenticationFilter, SessionManagementFilter, ExceptionTranslationFilter, AuthorizationFilter
2025-05-18T23:06:23.582Z  INFO 4760 --- [psyceful_api] [    Test worker] c.p.p.PsycefulApiApplicationTests        : Started PsycefulApiApplicationTests in 21.103 seconds (process running for 25.799)
Hibernate: 
    select
        count(*) 
    from
        roles r1_0
Hibernate: 
    select
        next value for roles_seq
Hibernate: 
    insert 
    into
        roles
        (name, id) 
    values
        (?, ?)
Hibernate: 
    select
        next value for roles_seq
Hibernate: 
    insert 
    into
        roles
        (name, id) 
    values
        (?, ?)