Skip to content

chore(elasticsearch): remove elasticmock from task handler tests#64200

Merged
eladkal merged 1 commit intoapache:mainfrom
Owen-CH-Leung:chore/refactor-es-test
Mar 25, 2026
Merged

chore(elasticsearch): remove elasticmock from task handler tests#64200
eladkal merged 1 commit intoapache:mainfrom
Owen-CH-Leung:chore/refactor-es-test

Conversation

@Owen-CH-Leung
Copy link
Copy Markdown
Contributor

Refactor the Elasticsearch task handler unit tests to stop relying on the in-process elasticmock fake. The suite now uses explicit mocked Elasticsearch responses and direct client mocks, which makes the tests easier to read and closer to the real code paths we own.

This also prunes a few low-value or redundant cases, tightens assertions in the remaining tests, and removes the old elasticmock helper package.

@eladkal eladkal merged commit 95d1a38 into apache:main Mar 25, 2026
194 of 195 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants