LoginIntegrationTest

8

tests

0

failures

0

ignored

1.921s

duration

100%

successful

Tests

Test Duration Result
correctCredentialsEstablishSessionAndAllowProductApiAccess() 0.348s passed
csrfTokenIsAvailableWithoutAuthentication() 0.099s passed
incorrectCredentialsDoNotGrantAccess() 0.820s passed
loginRejectsMissingAndInvalidCsrfTokensWithContractError() 0.190s passed
malformedLoginJsonReturnsBadRequest() 0.104s passed
missingResourceReturnsNotFound() 0.093s passed
seededDemoCustomerCanLogIn() 0.166s passed
unauthenticatedPagesRedirectAndApiRequestsReturnContractError() 0.101s passed

Standard output

2026-10-17T08:31:04.204Z  INFO 4401 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.comp5348.group06.store.web.LoginIntegrationTest]: LoginIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-10-17T08:31:04.268Z  INFO 4401 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.web.LoginIntegrationTest

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

 :: Spring Boot ::                (v3.3.3)

2026-10-17T08:31:04.358Z  INFO 4401 --- [    Test worker] c.c.g.store.web.LoginIntegrationTest     : Starting LoginIntegrationTest using Java 17.0.20.1 with PID 4401 (started by runner in /home/runner/work/comp5348-ci-relay/comp5348-ci-relay/repo/store)
2026-10-17T08:31:04.359Z  INFO 4401 --- [    Test worker] c.c.g.store.web.LoginIntegrationTest     : No active profile set, falling back to 1 default profile: "default"
2026-10-17T08:31:04.957Z  INFO 4401 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-10-17T08:31:04.996Z  INFO 4401 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 36 ms. Found 6 JPA repository interfaces.
2026-10-17T08:31:05.279Z  INFO 4401 --- [    Test worker] tc.postgres:17                           : Creating container for image: postgres:17
2026-10-17T08:31:05.333Z  INFO 4401 --- [    Test worker] tc.postgres:17                           : Container postgres:17 is starting: 9c2b2b81285b07afd21456fe754e4767fc9304fa6689b274aebb588559b6a8bf
2026-10-17T08:31:07.295Z  INFO 4401 --- [    Test worker] tc.postgres:17                           : Container postgres:17 started in PT2.015805618S
2026-10-17T08:31:07.296Z  INFO 4401 --- [    Test worker] tc.postgres:17                           : Container is started (JDBC URL: jdbc:postgresql://localhost:32772/test?loggerLevel=OFF)
2026-10-17T08:31:07.560Z  INFO 4401 --- [    Test worker] org.flywaydb.core.FlywayExecutor         : Database: jdbc:postgresql://localhost:32772/test (PostgreSQL 17.11)
2026-10-17T08:31:07.563Z  WARN 4401 --- [    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-17T08:31:07.571Z  INFO 4401 --- [    Test worker] o.f.c.i.s.JdbcTableSchemaHistory         : Schema history table "public"."flyway_schema_history" does not exist yet
2026-10-17T08:31:07.572Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbValidate     : Successfully validated 5 migrations (execution time 00:00.006s)
2026-10-17T08:31:07.581Z  INFO 4401 --- [    Test worker] o.f.c.i.s.JdbcTableSchemaHistory         : Creating Schema History table "public"."flyway_schema_history" ...
2026-10-17T08:31:07.642Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Current version of schema "public": << Empty Schema >>
2026-10-17T08:31:07.649Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "1 - create customer"
2026-10-17T08:31:07.666Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "2 - create catalogue"
2026-10-17T08:31:07.684Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "3 - create orders"
2026-10-17T08:31:07.704Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "4 - create reservations"
2026-10-17T08:31:07.721Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "5 - customer bank account"
2026-10-17T08:31:07.731Z  INFO 4401 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Successfully applied 5 migrations to schema "public", now at version v5 (execution time 00:00.033s)
2026-10-17T08:31:07.796Z  INFO 4401 --- [    Test worker] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-10-17T08:31:07.801Z  INFO 4401 --- [    Test worker] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2026-10-17T08:31:07.817Z  INFO 4401 --- [    Test worker] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-10-17T08:31:07.821Z  INFO 4401 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Starting...
2026-10-17T08:31:07.852Z  INFO 4401 --- [    Test worker] com.zaxxer.hikari.pool.HikariPool        : HikariPool-2 - Added connection org.postgresql.jdbc.PgConnection@3e0032f
2026-10-17T08:31:07.852Z  INFO 4401 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Start completed.
2026-10-17T08:31:08.022Z  INFO 4401 --- [    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-17T08:31:08.037Z  INFO 4401 --- [    Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-10-17T08:31:08.422Z  INFO 4401 --- [    Test worker] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name customerUserDetailsService
2026-10-17T08:31:08.757Z  INFO 4401 --- [    Test worker] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint beneath base path '/actuator'
2026-10-17T08:31:09.075Z  INFO 4401 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-10-17T08:31:09.076Z  INFO 4401 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-10-17T08:31:09.077Z  INFO 4401 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms
2026-10-17T08:31:09.111Z  INFO 4401 --- [    Test worker] c.c.g.store.web.LoginIntegrationTest     : Started LoginIntegrationTest in 4.838 seconds (process running for 19.114)