[MAGNOLIA-8530] Missing log entries when running tests Created: 29/Aug/22  Updated: 24/Oct/22  Resolved: 31/Aug/22

Status: Resolved
Project: Magnolia
Component/s: testing
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Bug Priority: Neutral
Reporter: Michael Duerig Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: foundation_team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by BUILD-928 Upgrade to Mockito 4 Closed
is depended upon by MAGNOLIA-8527 Upgrade to Mockito 4 and replace powe... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Team: Foundation

 Description   

Steps to reproduce

  1. Run `mvn clean verify` (Reproduced always on Jenkins with, never locally)

Expected results

All tests pass

Actual results

RepositoryBackedSecurityManagerTest#findPrincipalNodeByTraversalWithMultipleMatches and RepositoryBackedSecurityManagerTest#findPrincipalNodeByQueryWithMultipleMatches fail.

Development notes

The failing tests expect a message being logged, which is missing.

The root cause is the logging system being shut down when running MagnoliaServletContextListenerTest by the call to init.MagnoliaServletContextListener#contextDestroyed.


Generated at Mon Feb 12 04:33:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.