ProvisioningApiKeyBootstrapAcceptanceTest

6

tests

0

failures

0

ignored

1.089s

duration

100%

successful

Tests

Test Duration Result
aDifferentConfiguredApiKeyHashDoesNotReplaceTheStoredApiKey() 0.191s passed
aFurtherApplicationStartKeepsTheStoredApiKey() 0.029s passed
aMissingConfiguredApiKeyHashIsIgnored() 0.031s passed
aRestoreWithoutApiKeyDataProvisionsTheConfiguredApiKeyForTheExistingSubject() 0.806s passed
anInvalidConfiguredApiKeyHashFailsTheApplicationStart() 0.028s passed
configuredHashMatchesTheClearTextApiKey() 0.004s passed

Standard output

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

 :: Spring Boot ::                (v3.5.5)

2026-08-10T16:29:22.138Z  INFO 374 --- [    Test worker] rovisioningApiKeyBootstrapAcceptanceTest : Starting ProvisioningApiKeyBootstrapAcceptanceTest using Java 21.0.11 with PID 374 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/master-fc613b4dfd67)
2026-08-10T16:29:22.138Z  INFO 374 --- [    Test worker] rovisioningApiKeyBootstrapAcceptanceTest : The following 1 profile is active: "fake-jwt"
2026-08-10T16:29:23.054Z  INFO 374 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-08-10T16:29:23.310Z  INFO 374 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 255 ms. Found 35 JPA repository interfaces.
2026-08-10T16:29:23.574Z  INFO 374 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 0 (http)
2026-08-10T16:29:23.575Z  INFO 374 --- [    Test worker] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2026-08-10T16:29:23.575Z  INFO 374 --- [    Test worker] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.44]
2026-08-10T16:29:23.606Z  INFO 374 --- [    Test worker] o.a.c.c.C.[Tomcat-2].[localhost].[/]     : Initializing Spring embedded WebApplicationContext
2026-08-10T16:29:23.606Z  INFO 374 --- [    Test worker] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1467 ms
2026-08-10T16:29:23.684Z  INFO 374 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Starting...
2026-08-10T16:29:23.731Z  INFO 374 --- [    Test worker] com.zaxxer.hikari.pool.HikariPool        : HikariPool-2 - Added connection org.testcontainers.jdbc.ConnectionWrapper@2d1d149b
2026-08-10T16:29:23.732Z  INFO 374 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Start completed.
2026-08-10T16:29:24.886Z  WARN 374 --- [    Test worker] liquibase.executor                       : Context defined as: testing currentSubjectUuid, , hsh-fran_superuser, []
2026-08-10T16:29:24.887Z  WARN 374 --- [    Test worker] liquibase.executor                       : Context defined as: testing currentSubjectUuid, , hsh-alex_superuser, []
2026-08-10T16:29:25.062Z  INFO 374 --- [    Test worker] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-08-10T16:29:25.068Z  INFO 374 --- [    Test worker] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2026-08-10T16:29:25.074Z  INFO 374 --- [    Test worker] org.hibernate.orm.connections.pooling    : HHH10001005: Database info:
	Database JDBC URL [Connecting through datasource 'proxyDataSourceDecorator [net.ttddyy.dsproxy.support.ProxyDataSource] -> dataSource [com.zaxxer.hikari.HikariDataSource]']
	Database driver: undefined/unknown
	Database version: 15.5
	Autocommit mode: undefined/unknown
	Isolation level: undefined/unknown
	Minimum pool size: undefined/unknown
	Maximum pool size: undefined/unknown
2026-08-10T16:29:25.089Z  INFO 374 --- [    Test worker] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-08-10T16:29:25.223Z  WARN 374 --- [    Test worker] o.h.boot.model.internal.ToOneBinder      : HHH000491: 'net.hostsharing.hsadminng.hs.office.debitor.HsOfficeDebitorEntity.partner' uses both @NotFound and FetchType.LAZY. @ManyToOne and @OneToOne associations mapped with @NotFound are forced to EAGER fetching.
2026-08-10T16:29:25.228Z  WARN 374 --- [    Test worker] o.h.boot.model.internal.ToOneBinder      : HHH000491: 'net.hostsharing.hsadminng.hs.office.debitor.HsOfficeDebitorEntity.refundBankAccount' uses both @NotFound and FetchType.LAZY. @ManyToOne and @OneToOne associations mapped with @NotFound are forced to EAGER fetching.
2026-08-10T16:29:25.250Z  WARN 374 --- [    Test worker] o.h.boot.model.internal.ToOneBinder      : HHH000491: 'net.hostsharing.hsadminng.hs.office.partner.HsOfficePartnerRbacEntity.details' uses both @NotFound and FetchType.LAZY. @ManyToOne and @OneToOne associations mapped with @NotFound are forced to EAGER fetching.
2026-08-10T16:29:25.255Z  WARN 374 --- [    Test worker] o.h.boot.model.internal.ToOneBinder      : HHH000491: 'net.hostsharing.hsadminng.hs.office.partner.HsOfficePartnerRealEntity.details' uses both @NotFound and FetchType.LAZY. @ManyToOne and @OneToOne associations mapped with @NotFound are forced to EAGER fetching.
2026-08-10T16:29:26.101Z  INFO 374 --- [    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)
2026-08-10T16:29:26.101Z  INFO 374 --- [    Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-08-10T16:29:27.566Z  WARN 374 --- [    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
2026-08-10T16:29:28.429Z  INFO 374 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port 40927 (http) with context path '/'
2026-08-10T16:29:28.527Z  INFO 374 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 0 (http)
2026-08-10T16:29:28.532Z  INFO 374 --- [    Test worker] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2026-08-10T16:29:28.532Z  INFO 374 --- [    Test worker] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.44]
2026-08-10T16:29:28.555Z  INFO 374 --- [    Test worker] o.a.c.c.C.[Tomcat-3].[localhost].[/]     : Initializing Spring embedded WebApplicationContext
2026-08-10T16:29:28.556Z  INFO 374 --- [    Test worker] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 123 ms
2026-08-10T16:29:28.572Z  INFO 374 --- [    Test worker] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 5 endpoints beneath base path '/actuator'
2026-08-10T16:29:28.678Z  INFO 374 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port 34859 (http) with context path '/'
2026-08-10T16:29:28.696Z  INFO 374 --- [    Test worker] rovisioningApiKeyBootstrapAcceptanceTest : Started ProvisioningApiKeyBootstrapAcceptanceTest in 6.625 seconds (process running for 64.373)
2026-08-10T16:29:28.714Z  INFO 374 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : provisioned the provisioning API-key subject 'hsadminng.provisioning.key' with the global ADMIN role
2026-08-10T16:29:28.781Z  INFO 374 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : provisioned the provisioning API-key subject 'hsadminng.provisioning.key' with the global ADMIN role
2026-08-10T16:29:28.813Z  INFO 374 --- [o-auto-3-exec-1] o.a.c.c.C.[Tomcat-2].[localhost].[/]     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2026-08-10T16:29:28.831Z  INFO 374 --- [o-auto-3-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2026-08-10T16:29:28.833Z  INFO 374 --- [o-auto-3-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 2 ms
2026-08-10T16:29:29.582Z  WARN 374 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : the configured provisioning API-key hash differs from the API-key stored for subject 'hsadminng.provisioning.key'; the stored API-key takes precedence and remains valid
2026-08-10T16:29:29.771Z  INFO 374 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : the provisioning API-key subject 'hsadminng.provisioning.key' is already provisioned