Skip to content

Add S3 client interface to backupentry package to allow for better mocking#813

Merged
gonzolino merged 3 commits intoironcore-dev:mainfrom
gonzolino:backupentry-s3-mock
Sep 24, 2025
Merged

Add S3 client interface to backupentry package to allow for better mocking#813
gonzolino merged 3 commits intoironcore-dev:mainfrom
gonzolino:backupentry-s3-mock

Conversation

@gonzolino
Copy link
Copy Markdown
Contributor

@gonzolino gonzolino commented Sep 22, 2025

Proposed Changes

  • Add S3Client interface and mocks to backupentry.
  • Adapt backupentry tests to use S3 client mocks instead of s3ObjectLister mock.
  • Remove s3ObjectLister interface and integrate functionality into DeleteObjectsWithPrefix function.

This new interface allows to mock the S3 client interface in tests.
The interface is no longer needed for mocking and the functionality is
integrated into the DeleteObjectsWithPrefix function.
@lukasfrank lukasfrank added chore and removed chore labels Sep 23, 2025
@gonzolino gonzolino merged commit 43c3e41 into ironcore-dev:main Sep 24, 2025
13 checks passed
@gonzolino gonzolino deleted the backupentry-s3-mock branch September 24, 2025 09:11
@hardikdr hardikdr added the area/gardener-extension Gardener extension integration. label Oct 14, 2025
@hardikdr hardikdr added this to Roadmap Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants