SecurityConfigOidcTest fails due to Spring context load error (SZ-29)
rk@tigase.net opened 3 weeks ago

Summary

The test class SecurityConfigOidcTest fails to load the Spring application context under the oidc profile. This test is currently disabled to allow the rest of the suite to pass.

Details

Observed errors:

  • IllegalStateException: Failed to load ApplicationContext
  • ApplicationContext failure threshold exceeded

This is likely due to unresolved dependencies in @WebMvcTest with the oidc profile active, or due to incompatible auto-configurations not being excluded.

Action Items

  • Fix profile-based configuration issues in test context
  • Simplify or adjust the @WebMvcTest setup to avoid loading full config
  • Consider moving test to @SpringBootTest if full context is essential

Priority

Low-to-medium – doesn't block current delivery, but should be addressed

  • rk@tigase.net commented 3 weeks ago

    Estimated Time: 2 hours

    • 30m – Review SecurityConfigOidcTest class and error trace in Surefire logs
    • 30m – Investigate Spring context loading issue under "oidc" profile; verify bean wiring
    • 30m – Fix misconfiguration (e.g., missing mock beans, conflicting annotations)
    • 30m – Rerun test with OIDC profile, validate full test suite, and push fix
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
SZ-29
Please wait...
Page is in error, reload to recover