CatalogueRepositoryTest
Tests
| Test |
Duration |
Result |
| sampleProductAndStockCanBeRead() |
0.630s |
passed |
Standard output
09:36:58.168 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.comp5348.group06.store.repository.CatalogueRepositoryTest]: CatalogueRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
09:36:58.270 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.repository.CatalogueRepositoryTest
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.3)
2026-10-17T09:36:58.590Z INFO 4069 --- [ Test worker] c.c.g.s.r.CatalogueRepositoryTest : Starting CatalogueRepositoryTest using Java 17.0.20.1 with PID 4069 (started by runner in /home/runner/work/comp5348-ci-relay/comp5348-ci-relay/repo/store)
2026-10-17T09:36:58.595Z INFO 4069 --- [ Test worker] c.c.g.s.r.CatalogueRepositoryTest : No active profile set, falling back to 1 default profile: "default"
2026-10-17T09:36:59.466Z INFO 4069 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-10-17T09:36:59.525Z INFO 4069 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 52 ms. Found 6 JPA repository interfaces.
2026-10-17T09:37:00.097Z INFO 4069 --- [ Test worker] org.testcontainers.images.PullPolicy : Image pull policy will be performed by: DefaultPullPolicy()
2026-10-17T09:37:00.100Z INFO 4069 --- [ Test worker] o.t.utility.ImageNameSubstitutor : Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2026-10-17T09:37:00.120Z INFO 4069 --- [ Test worker] org.testcontainers.DockerClientFactory : Testcontainers version: 1.21.4
2026-10-17T09:37:00.231Z INFO 4069 --- [ Test worker] o.t.d.DockerClientProviderStrategy : Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
2026-10-17T09:37:00.466Z INFO 4069 --- [ Test worker] o.t.d.DockerClientProviderStrategy : Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
2026-10-17T09:37:00.472Z INFO 4069 --- [ Test worker] org.testcontainers.DockerClientFactory : Docker host IP address is localhost
2026-10-17T09:37:00.500Z INFO 4069 --- [ Test worker] org.testcontainers.DockerClientFactory : Connected to docker:
Server Version: 28.0.4
API Version: 1.48
Operating System: Ubuntu 24.04.5 LTS
Total Memory: 7938 MB
2026-10-17T09:37:00.597Z INFO 4069 --- [ Test worker] tc.testcontainers/ryuk:0.12.0 : Creating container for image: testcontainers/ryuk:0.12.0
2026-10-17T09:37:00.823Z INFO 4069 --- [ Test worker] tc.testcontainers/ryuk:0.12.0 : Container testcontainers/ryuk:0.12.0 is starting: 8406a12f9e761171ef1254e672cea78c8489ee581fe6fa018bfa429593ac265f
2026-10-17T09:37:01.027Z INFO 4069 --- [ Test worker] tc.testcontainers/ryuk:0.12.0 : Container testcontainers/ryuk:0.12.0 started in PT0.429022379S
2026-10-17T09:37:01.031Z INFO 4069 --- [ Test worker] o.t.utility.RyukResourceReaper : Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
2026-10-17T09:37:01.031Z INFO 4069 --- [ Test worker] org.testcontainers.DockerClientFactory : Checking the system...
2026-10-17T09:37:01.032Z INFO 4069 --- [ Test worker] org.testcontainers.DockerClientFactory : ✔︎ Docker server version should be at least 1.6.0
2026-10-17T09:37:01.033Z INFO 4069 --- [ Test worker] tc.postgres:17 : Creating container for image: postgres:17
2026-10-17T09:37:01.071Z INFO 4069 --- [ Test worker] tc.postgres:17 : Container postgres:17 is starting: c6defd2acdae61135ff6c785840e4854f3b0c7626101b5681ab773c7d1257802
2026-10-17T09:37:02.179Z INFO 4069 --- [ Test worker] tc.postgres:17 : Container postgres:17 started in PT1.146048232S
2026-10-17T09:37:02.180Z INFO 4069 --- [ Test worker] tc.postgres:17 : Container is started (JDBC URL: jdbc:postgresql://localhost:32771/test?loggerLevel=OFF)
2026-10-17T09:37:02.669Z INFO 4069 --- [ Test worker] org.flywaydb.core.FlywayExecutor : Database: jdbc:postgresql://localhost:32771/test (PostgreSQL 17.11)
2026-10-17T09:37:02.681Z WARN 4069 --- [ Test worker] o.f.c.internal.database.base.Database : Flyway upgrade recommended: PostgreSQL 17.11 is newer than this version of Flyway and support has not been tested. The latest supported version of PostgreSQL is 16.
2026-10-17T09:37:02.699Z INFO 4069 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Schema history table "public"."flyway_schema_history" does not exist yet
2026-10-17T09:37:02.703Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbValidate : Successfully validated 6 migrations (execution time 00:00.015s)
2026-10-17T09:37:02.716Z INFO 4069 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table "public"."flyway_schema_history" ...
2026-10-17T09:37:02.778Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Current version of schema "public": << Empty Schema >>
2026-10-17T09:37:02.791Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "1 - create customer"
2026-10-17T09:37:02.818Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "2 - create catalogue"
2026-10-17T09:37:02.836Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "3 - create orders"
2026-10-17T09:37:02.850Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "4 - create reservations"
2026-10-17T09:37:02.864Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "5 - customer bank account"
2026-10-17T09:37:02.872Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "6 - order bank account snapshots"
2026-10-17T09:37:02.884Z INFO 4069 --- [ Test worker] o.f.core.internal.command.DbMigrate : Successfully applied 6 migrations to schema "public", now at version v6 (execution time 00:00.036s)
2026-10-17T09:37:02.975Z INFO 4069 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-10-17T09:37:03.009Z INFO 4069 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.5.2.Final
2026-10-17T09:37:03.051Z INFO 4069 --- [ Test worker] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2026-10-17T09:37:03.251Z INFO 4069 --- [ Test worker] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-10-17T09:37:03.267Z INFO 4069 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2026-10-17T09:37:03.289Z INFO 4069 --- [ Test worker] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@589a4305
2026-10-17T09:37:03.290Z INFO 4069 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2026-10-17T09:37:04.030Z INFO 4069 --- [ 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-10-17T09:37:04.056Z INFO 4069 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-10-17T09:37:04.303Z INFO 4069 --- [ Test worker] o.s.d.j.r.query.QueryEnhancerFactory : Hibernate is in classpath; If applicable, HQL parser will be used.
2026-10-17T09:37:05.114Z INFO 4069 --- [ Test worker] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name customerUserDetailsService
2026-10-17T09:37:05.657Z INFO 4069 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2026-10-17T09:37:06.285Z INFO 4069 --- [ Test worker] c.c.g.s.r.CatalogueRepositoryTest : Started CatalogueRepositoryTest in 7.917 seconds (process running for 8.948)