Skip to content

Assert the enumeration fallback logs a warning - #2717

Merged
johngrimes merged 2 commits into
release/server/3.0.0from
issue/2712
Aug 7, 2026
Merged

Assert the enumeration fallback logs a warning#2717
johngrimes merged 2 commits into
release/server/3.0.0from
issue/2712

Conversation

@johngrimes

Copy link
Copy Markdown
Member

Resolves #2712.

DynamicDeltaSourceTest.enumerationFallsBackWhenListingFails verified that a failed warehouse directory listing falls back to the known resource types, but never asserted that the accompanying warning was emitted, so that half of the behaviour could regress silently. The test now captures the log events and requires a WARN naming the failed listing. Verified by temporarily removing the warning from DynamicDeltaSource and observing the strengthened assertion fail.

The fallback test verified the behaviour but not the warning, so the
logging half of the contract could regress silently. Capture the log
events and require a WARN naming the failed listing. Resolves #2712.
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

Base automatically changed from issue-2709 to release/server/3.0.0 August 7, 2026 07:19
@johngrimes
johngrimes merged commit f1d8f93 into main Aug 7, 2026
3 of 4 checks passed
@johngrimes
johngrimes deleted the issue/2712 branch August 7, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enumeration fallback test does not assert that the warning is logged

1 participant