From 93122f2ef2c529d49984172a2d0b1a6ca451a4eb Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 6 Oct 2026 12:15:57 +0200 Subject: [PATCH] CSB-8936: Add support for finding blobs by index tags - Add findBlobsByTags integration test Co-Authored-By: Claude Opus 4.6 --- .../test/java/camel/sample/BlobTagsTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/azure/camel-example-spring-boot-azure-storage-blob/src/test/java/camel/sample/BlobTagsTest.java b/azure/camel-example-spring-boot-azure-storage-blob/src/test/java/camel/sample/BlobTagsTest.java index 4a8142494..66c1fff63 100644 --- a/azure/camel-example-spring-boot-azure-storage-blob/src/test/java/camel/sample/BlobTagsTest.java +++ b/azure/camel-example-spring-boot-azure-storage-blob/src/test/java/camel/sample/BlobTagsTest.java @@ -136,4 +136,21 @@ void testSetAndGetBlobTags() { assertEquals("document", retrieved.get("category")); assertEquals("high", retrieved.get("priority")); } + + @Test + void testFindBlobsByTags() { + uploadTestBlob(); + + Map tags = Map.of("Environment", "Production"); + template.send("direct:setBlobTags", exchange -> { + exchange.getIn().setHeader(BlobConstants.BLOB_NAME, BLOB_NAME); + exchange.getIn().setHeader(BlobConstants.BLOB_TAGS, tags); + }); + + Exchange result = template.send("direct:findBlobsByTags", exchange -> { + exchange.getIn().setHeader(BlobConstants.BLOB_TAG_FILTER, "\"Environment\" = 'Production'"); + }); + assertNull(result.getException(), "findBlobsByTags should succeed: " + result.getException()); + assertNotNull(result.getMessage().getBody(), "Should return results"); + } }