Skip to content

test: Add tests covering BlobStoreService operations [DHIS2-20648]#23867

Merged
david-mackessy merged 9 commits into
masterfrom
DHIS2-20648_3
May 12, 2026
Merged

test: Add tests covering BlobStoreService operations [DHIS2-20648]#23867
david-mackessy merged 9 commits into
masterfrom
DHIS2-20648_3

Conversation

@david-mackessy

@david-mackessy david-mackessy commented May 11, 2026

Copy link
Copy Markdown
Contributor

AI assisted 🤖

Summary

Add tests for the BlobStoreService before migration, increasing safety, confidence and success of the migration.

Tests added for the different implementations we support:

  • file system
  • s3
  • transient

These are marked as @Tag("integration"):

  • so they run during the integration tests
  • as they don't need Postgres or Spring

S3BlobStoreServiceContractTest uses the existing MinIO container for tests.

Info

Multiple TODOs added for context about issues with the current JClouds limitations which will be resolved during the migration:

  • doesn't delete recursively through a directory
  • no signed url support
  • listing keys returns directories/markers as well as actual blob keys

@sonarqubecloud

sonarqubecloud Bot commented May 12, 2026

Copy link
Copy Markdown

@david-mackessy david-mackessy changed the title Dhis2 20648 3 test: Add tests covering BlobStoreService operations [DHIS2-20648] May 12, 2026
@david-mackessy
david-mackessy marked this pull request as ready for review May 12, 2026 11:02

@Override
public void afterAll(ExtensionContext context) {
MIN_IO_CONTAINER.stop();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testcontainers' Ryuk reaper handles teardown on JVM exit

@david-mackessy
david-mackessy enabled auto-merge (squash) May 12, 2026 12:21
@david-mackessy
david-mackessy merged commit 0ee4312 into master May 12, 2026
19 checks passed
@david-mackessy
david-mackessy deleted the DHIS2-20648_3 branch May 12, 2026 12:49
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.

3 participants