OrderLifecycleEndToEndIntegrationTest
Tests
| Test |
Duration |
Result |
| testScenarioAForwardHappyPath() |
0.645s |
passed |
| testScenarioBCancellationAndRefundPath() |
1.022s |
passed |
| testScenarioCDispatchGuardConflict() |
0.696s |
passed |
Standard output
2026-10-18T11:02:52.043Z INFO 3989 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.comp5348.group06.store.service.OrderLifecycleEndToEndIntegrationTest]: OrderLifecycleEndToEndIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-10-18T11:02:52.052Z INFO 3989 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.service.OrderLifecycleEndToEndIntegrationTest
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.3)
2026-10-18T11:02:52.087Z INFO 3989 --- [ Test worker] .s.OrderLifecycleEndToEndIntegrationTest : Starting OrderLifecycleEndToEndIntegrationTest using Java 17.0.20.1 with PID 3989 (started by runner in /home/runner/work/comp5348-ci-relay/comp5348-ci-relay/repo/store)
2026-10-18T11:02:52.087Z INFO 3989 --- [ Test worker] .s.OrderLifecycleEndToEndIntegrationTest : No active profile set, falling back to 1 default profile: "default"
2026-10-18T11:02:52.414Z INFO 3989 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-10-18T11:02:52.437Z INFO 3989 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 21 ms. Found 6 JPA repository interfaces.
2026-10-18T11:02:52.548Z INFO 3989 --- [ Test worker] tc.rabbitmq:3.13-management : Creating container for image: rabbitmq:3.13-management
2026-10-18T11:02:52.603Z INFO 3989 --- [ Test worker] tc.rabbitmq:3.13-management : Container rabbitmq:3.13-management is starting: 015c0344a3121946a798ec26b70e16c31b794b33bfa51117c24e0fa2d62141fd
2026-10-18T11:03:00.256Z INFO 3989 --- [ Test worker] tc.rabbitmq:3.13-management : Container rabbitmq:3.13-management started in PT7.707997684S
2026-10-18T11:03:00.257Z INFO 3989 --- [ Test worker] tc.postgres:17 : Creating container for image: postgres:17
2026-10-18T11:03:00.295Z INFO 3989 --- [ Test worker] tc.postgres:17 : Container postgres:17 is starting: d4a6aad054ad9b283d85a17c5d5530bda25a438e6f3030e1d62b0a1d94723081
2026-10-18T11:03:01.478Z INFO 3989 --- [ Test worker] tc.postgres:17 : Container postgres:17 started in PT1.221538433S
2026-10-18T11:03:01.479Z INFO 3989 --- [ Test worker] tc.postgres:17 : Container is started (JDBC URL: jdbc:postgresql://localhost:32792/test?loggerLevel=OFF)
2026-10-18T11:03:01.609Z INFO 3989 --- [ Test worker] org.flywaydb.core.FlywayExecutor : Database: jdbc:postgresql://localhost:32792/test (PostgreSQL 17.11)
2026-10-18T11:03:01.611Z WARN 3989 --- [ 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-18T11:03:01.617Z INFO 3989 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Schema history table "public"."flyway_schema_history" does not exist yet
2026-10-18T11:03:01.618Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbValidate : Successfully validated 8 migrations (execution time 00:00.004s)
2026-10-18T11:03:01.624Z INFO 3989 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table "public"."flyway_schema_history" ...
2026-10-18T11:03:01.642Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Current version of schema "public": << Empty Schema >>
2026-10-18T11:03:01.646Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "1 - create customer"
2026-10-18T11:03:01.662Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "2 - create catalogue"
2026-10-18T11:03:01.680Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "3 - create orders"
2026-10-18T11:03:01.694Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "4 - create reservations"
2026-10-18T11:03:01.705Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "5 - customer bank account"
2026-10-18T11:03:01.712Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "6 - order bank account snapshots"
2026-10-18T11:03:01.720Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "7 - payment requests"
2026-10-18T11:03:01.728Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "8 - order refund requests"
2026-10-18T11:03:01.734Z INFO 3989 --- [ Test worker] o.f.core.internal.command.DbMigrate : Successfully applied 8 migrations to schema "public", now at version v8 (execution time 00:00.037s)
2026-10-18T11:03:01.749Z INFO 3989 --- [ Test worker] o.f.c.i.c.SqlScriptCallbackFactory : Executing SQL callback: afterMigrate -
2026-10-18T11:03:01.793Z INFO 3989 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-10-18T11:03:01.796Z INFO 3989 --- [ Test worker] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2026-10-18T11:03:01.803Z INFO 3989 --- [ Test worker] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-10-18T11:03:01.804Z INFO 3989 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Starting...
2026-10-18T11:03:01.812Z INFO 3989 --- [ Test worker] com.zaxxer.hikari.pool.HikariPool : HikariPool-3 - Added connection org.postgresql.jdbc.PgConnection@cd0c71e
2026-10-18T11:03:01.812Z INFO 3989 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Start completed.
2026-10-18T11:03:01.984Z INFO 3989 --- [ 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-18T11:03:02.001Z INFO 3989 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-10-18T11:03:02.310Z INFO 3989 --- [ Test worker] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name customerUserDetailsService
2026-10-18T11:03:02.407Z INFO 3989 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2026-10-18T11:03:02.641Z INFO 3989 --- [ Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-10-18T11:03:02.641Z INFO 3989 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2026-10-18T11:03:02.642Z INFO 3989 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms
2026-10-18T11:03:02.672Z INFO 3989 --- [ Test worker] .s.OrderLifecycleEndToEndIntegrationTest : Started OrderLifecycleEndToEndIntegrationTest in 10.612 seconds (process running for 49.168)
2026-10-18T11:03:02.684Z INFO 3989 --- [ Test worker] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:32789]
2026-10-18T11:03:02.688Z INFO 3989 --- [ Test worker] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#18a1435e:0/SimpleConnection@6254b3ce [delegate=amqp://guest@127.0.0.1:32789/, localPort=44456]
2026-10-18T11:03:03.357Z INFO 3989 --- [ Test worker] c.c.g.store.web.OrderCreationController : Created order 1
2026-10-18T11:03:03.383Z INFO 3989 --- [ Test worker] c.c.g.store.service.OrderPaymentService : Order 1 marked PAID with payment ID tx-bank-paid-2
2026-10-18T11:03:03.469Z INFO 3989 --- [ Test worker] c.c.g.store.service.OrderRefundService : Order 1 marked REFUNDED with refund transaction ID rf-tx-bank-2
2026-10-18T11:03:04.129Z INFO 3989 --- [ Test worker] c.c.g.store.web.OrderCreationController : Created order 2
2026-10-18T11:03:04.139Z INFO 3989 --- [ Test worker] c.c.g.store.service.OrderPaymentService : Order 2 marked PAID with payment ID tx-bank-paid-3
2026-10-18T11:03:04.147Z INFO 3989 --- [ Test worker] c.c.g.s.d.DeliveryDispatchPublisher : Publishing delivery request msg-del-2 for order 2 to exchange delivery.exchange with routing key delivery.request
2026-10-18T11:03:04.156Z INFO 3989 --- [ Test worker] c.c.g.s.d.DeliveryDispatchPublisher : Broker ACK received for delivery request msg-del-2
2026-10-18T11:03:04.157Z INFO 3989 --- [ Test worker] c.c.g.s.service.OrderDeliveryService : Order 2 successfully dispatched with messageId msg-del-2
2026-10-18T11:03:04.788Z INFO 3989 --- [ Test worker] c.c.g.store.web.OrderCreationController : Created order 3
2026-10-18T11:03:04.804Z INFO 3989 --- [ Test worker] c.c.g.store.service.OrderPaymentService : Order 3 marked PAID with payment ID tx-bank-e2e-1
2026-10-18T11:03:04.816Z INFO 3989 --- [ Test worker] c.c.g.s.d.DeliveryDispatchPublisher : Publishing delivery request msg-del-3 for order 3 to exchange delivery.exchange with routing key delivery.request
2026-10-18T11:03:04.819Z INFO 3989 --- [ Test worker] c.c.g.s.d.DeliveryDispatchPublisher : Broker ACK received for delivery request msg-del-3
2026-10-18T11:03:04.820Z INFO 3989 --- [ Test worker] c.c.g.s.service.OrderDeliveryService : Order 3 successfully dispatched with messageId msg-del-3