#6244 use mockery to generate mocks in data pkg
Pull request opened by
popojk
Tracking issue
Related to
#149
Why are the changes needed?
FlyteAdmin currently relies on manually crafted mocks, which are cumbersome to maintain and extend for new interfaces. Switching to Mockery v2 generated mocks is a more efficient approach, eliminating repetitive boilerplate code and streamlining the development process.
What changes were proposed in this pull request?
This PR updates the mocks in flyteadmin/pkg/data to use Mockery v2 generated mocks and includes modifications to the related test cases to ensure compatibility.
Check all the applicable boxes
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
Migration from manual mocks to auto-generated mocks using Mockery v2 in the flyteadmin/pkg/data package. The PR removes old manual mock implementations, adds mockery generation directives, and updates test files to use the new mock interface. This change enhances maintainability and testing consistency by leveraging generated mocks.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 3
flyteorg/flyte