Conversation
- Introduces the camel-example-spring-boot-azure-storage-blob module with basic blob upload/download - Adds setBlobTags, getBlobTags and findBlobsByTags routes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Adds createSnapshot route for snapshot creation/reading blob content Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bac4f3a to
c2b0d8a
Compare
Croway
left a comment
There was a problem hiding this comment.
Claude Code on behalf of Federico Mariani
| from("direct:uploadBlob") | ||
| .to("azure-storage-blob://{{azure.storage.account-name}}/{{azure.storage.container-name}}" | ||
| + "?operation=uploadBlockBlob" | ||
| + "&serviceClient=#serviceClient"); |
There was a problem hiding this comment.
No serviceClient bean is defined in main code (only in the tests), so the app fails at startup: NoSuchBeanException: No bean could be found in the registry for: serviceClient of type: com.azure.storage.blob.BlobServiceClient. Same for BlobTagsRouteBuilder and BlobSnapshotRouteBuilder. Either add a @Bean BlobServiceClient serviceClient in main, or drop #serviceClient and configure the component via properties.
| camel: | ||
| component: | ||
| azure-storage-blob: | ||
| credential-type: SHARED_KEY_CREDENTIAL |
There was a problem hiding this comment.
AZURE_STORAGE_ACCESS_KEY from the README is never read, so SHARED_KEY_CREDENTIAL has no key to sign with. Suggest adding access-key: ${AZURE_STORAGE_ACCESS_KEY} here (or using it in a main-code client bean).
| @@ -0,0 +1,11 @@ | |||
| azure: | |||
CSB-8938: Add blob snapshot routes and test
Summary
Adds the camel-example-spring-boot-azure-storage-blob example module demonstrating
the Camel Azure Storage Blob component on Spring Boot.
Commits:
Test approach:
All tests run against Azurite (https://github.com/Azure/Azurite) (Azure Storage
emulator) via Testcontainers — no cloud credentials required. Each test class follows
the canonical CSB test pattern (CamelAutoConfiguration.class + test class +
@configuration with @DynamicPropertySource).