This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e0466b265f4b CAMEL-26613: camel-test-infra-azure - move the Queue 
service from Azurite to Floci AZ 0.17.0 (#31125)
e0466b265f4b is described below

commit e0466b265f4bb34fd3d9385dcbc39e37b436dd0a
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 30 22:13:04 2026 +0100

    CAMEL-26613: camel-test-infra-azure - move the Queue service from Azurite 
to Floci AZ 0.17.0 (#31125)
    
    First part of CAMEL-26613: the storage-queue test service runs on Floci AZ 
0.17.0, which returns queue messages in the
    order they were sent. Blob stays on Azurite for now.
    
    - Floci AZ image to 0.17.0 for all the Azure test services that run on it.
    - The storage-queue service extends FlociAzInfraService, and the client 
uses /<account>-queue.
    - The azure.storage.queue.container key is removed and its AzureProperties 
constant deprecated.
    - The remote endpoint of AzureStorageClientUtils no longer puts the account 
key in the path.
    - 4.25 upgrade guide: `camel infra run azure storage-queue` now serves
      http://localhost:4577/devstoreaccount1-queue.
    
    Claude Code on behalf of Andrea Cosentino.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../apache/camel/catalog/test-infra/metadata.json  | 18 ++++----
 .../camel-azure/camel-azure-storage-queue/pom.xml  |  2 +-
 .../queue/integration/StorageQueueBase.java        |  2 +-
 .../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc    |  9 ++++
 .../src/generated/resources/META-INF/metadata.json | 18 ++++----
 .../test/infra/azure/common/AzureProperties.java   | 10 +++--
 .../azure/common/services/container.properties     |  6 +--
 .../queue/clients/AzureStorageClientUtils.java     |  5 ++-
 .../services/AzureStorageQueueInfraService.java    |  2 +-
 ...zureStorageQueueLocalContainerInfraService.java | 52 ++++------------------
 10 files changed, 50 insertions(+), 74 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/test-infra/metadata.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/test-infra/metadata.json
index cb05787bc28e..4540ac25ef85 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/test-infra/metadata.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/test-infra/metadata.json
@@ -117,7 +117,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-key-vault",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.openfga.services.OpenFgaInfraService",
@@ -264,14 +264,14 @@
   "uiSupported" : true
 }, {
   "service" : 
"org.apache.camel.test.infra.azure.common.services.AzureInfraService",
-  "description" : "Local Azure services with Azurite",
+  "description" : "Local Azure Storage Queue service with Floci AZ",
   "implementation" : 
"org.apache.camel.test.infra.azure.storage.queue.services.AzureStorageQueueLocalContainerInfraService",
   "alias" : [ "azure" ],
   "aliasImplementation" : [ "storage-queue" ],
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-storage-queue",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "3.37.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.azure.eventhubs.services.AzureEventHubsInfraService",
@@ -282,7 +282,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-eventhubs",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.infinispan.services.InfinispanInfraService",
@@ -491,7 +491,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-servicebus",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.solr.services.SolrInfraService",
@@ -623,7 +623,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-storage-datalake",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.artemis.services.ArtemisInfraService",
@@ -854,7 +854,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-eventgrid",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.spiffe.services.SpiffeInfraService",
@@ -931,7 +931,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-functions",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.pinecone.services.PineconeInfraService",
@@ -953,7 +953,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-cosmosdb",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.ftp.services.FtpInfraService",
diff --git a/components/camel-azure/camel-azure-storage-queue/pom.xml 
b/components/camel-azure/camel-azure-storage-queue/pom.xml
index 65f41a78d6ce..56894525365d 100644
--- a/components/camel-azure/camel-azure-storage-queue/pom.xml
+++ b/components/camel-azure/camel-azure-storage-queue/pom.xml
@@ -33,7 +33,7 @@
     <description>Camel Azure Storage Queue Service Component</description>
 
     <properties>
-        <!-- Azurite is not available on these platforms -->
+        <!-- Floci AZ is not available on these platforms -->
         <skipITs.ppc64le>true</skipITs.ppc64le>
         <skipITs.s390x>true</skipITs.s390x>
         <!-- Make use of native access during IT test execution only -->
diff --git 
a/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration/StorageQueueBase.java
 
b/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration/StorageQueueBase.java
index 07615536c80b..3ace5f19c93e 100644
--- 
a/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration/StorageQueueBase.java
+++ 
b/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration/StorageQueueBase.java
@@ -48,7 +48,7 @@ public class StorageQueueBase extends CamelTestSupport {
 
     /*
      * The previous behavior of the test code was such that if accessKey or 
accountName properties were
-     * set, the code would not start the azurite container and would execute 
against a remote environment.
+     * set, the code would not start the local container and would execute 
against a remote environment.
      * To avoid breaking tests for environments relying on this behavior, copy 
the old properties into the
      *  new and set the test as remote.
      */
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index e7878d0b623a..cf32bd6f167f 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -25,6 +25,15 @@ Additionally, a misconfigured `oauthProfile` on the OpenAI 
API client (the `oaut
 itself, not on a nested `mcpServer.*`) will only be reported on the first 
exchange rather than at route startup. This
 is an intentional trade-off that enables short-lived token refresh.
 
+=== Camel CLI - the Azure Storage Queue dev service runs on Floci AZ
+
+`camel infra run azure storage-queue` now starts the Queue service of 
https://github.com/floci-io/floci-az[Floci AZ]
+instead of Azurite, as the other Azure dev services already did. Floci AZ 
serves all its services on port `4577`, and the
+Queue service of the `devstoreaccount1` account under 
`/devstoreaccount1-queue`. A client of the dev service, such as a
+`QueueServiceClient` set in the `serviceClient` option of 
`azure-storage-queue`, needs the address
+`http://localhost:4577/devstoreaccount1-queue` instead of 
`http://localhost:10001/devstoreaccount1`. The account name and
+key do not change. The Blob dev service still runs on Azurite.
+
 === camel-alibaba-eventbridge - the client that the endpoint creates sends its 
requests over HTTPS
 
 The client that the `alibaba-eventbridge` endpoint creates now sends its 
requests to EventBridge over HTTPS. Before,
diff --git 
a/test-infra/camel-test-infra-all/src/generated/resources/META-INF/metadata.json
 
b/test-infra/camel-test-infra-all/src/generated/resources/META-INF/metadata.json
index cb05787bc28e..4540ac25ef85 100644
--- 
a/test-infra/camel-test-infra-all/src/generated/resources/META-INF/metadata.json
+++ 
b/test-infra/camel-test-infra-all/src/generated/resources/META-INF/metadata.json
@@ -117,7 +117,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-key-vault",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.openfga.services.OpenFgaInfraService",
@@ -264,14 +264,14 @@
   "uiSupported" : true
 }, {
   "service" : 
"org.apache.camel.test.infra.azure.common.services.AzureInfraService",
-  "description" : "Local Azure services with Azurite",
+  "description" : "Local Azure Storage Queue service with Floci AZ",
   "implementation" : 
"org.apache.camel.test.infra.azure.storage.queue.services.AzureStorageQueueLocalContainerInfraService",
   "alias" : [ "azure" ],
   "aliasImplementation" : [ "storage-queue" ],
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-storage-queue",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "3.37.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.azure.eventhubs.services.AzureEventHubsInfraService",
@@ -282,7 +282,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-eventhubs",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.infinispan.services.InfinispanInfraService",
@@ -491,7 +491,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-servicebus",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.solr.services.SolrInfraService",
@@ -623,7 +623,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-storage-datalake",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.artemis.services.ArtemisInfraService",
@@ -854,7 +854,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-eventgrid",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.spiffe.services.SpiffeInfraService",
@@ -931,7 +931,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-functions",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : 
"org.apache.camel.test.infra.pinecone.services.PineconeInfraService",
@@ -953,7 +953,7 @@
   "groupId" : "org.apache.camel",
   "artifactId" : "camel-test-infra-azure-cosmosdb",
   "version" : "4.24.0-SNAPSHOT",
-  "serviceVersion" : "0.16.0",
+  "serviceVersion" : "0.17.0",
   "uiSupported" : false
 }, {
   "service" : "org.apache.camel.test.infra.ftp.services.FtpInfraService",
diff --git 
a/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/AzureProperties.java
 
b/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/AzureProperties.java
index 7f409b69edb7..f068981b43a3 100644
--- 
a/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/AzureProperties.java
+++ 
b/test-infra/camel-test-infra-azure-common/src/main/java/org/apache/camel/test/infra/azure/common/AzureProperties.java
@@ -23,13 +23,17 @@ public final class AzureProperties {
      */
     public static final String AZURE_CONTAINER = "azure.container";
     /**
-     * The Azurite image of the local Blob service. Blob and Queue keep a key 
each, so the version of the test-infra
-     * metadata is matched by their implementation alias and not by the shared 
{@code azure} alias of Floci AZ.
+     * The Azurite image of the local Blob service. It has a key of its own, 
so the version of the test-infra metadata
+     * is matched by its implementation alias and not by the shared {@code 
azure} alias of Floci AZ.
      */
     public static final String AZURE_STORAGE_BLOB_CONTAINER = 
"azure.storage.blob.container";
     /**
-     * The Azurite image of the local Queue service
+     * The key of the Azurite image that the local Queue service ran on. The 
service now runs on Floci AZ, the image of
+     * {@link #AZURE_CONTAINER}.
+     *
+     * @deprecated the key is no longer in {@code container.properties}
      */
+    @Deprecated(since = "4.25.0")
     public static final String AZURE_STORAGE_QUEUE_CONTAINER = 
"azure.storage.queue.container";
     /**
      * The Artemis image of the AMQP brokers that Floci AZ starts for Event 
Hubs and Service Bus. Floci AZ copies AMQP
diff --git 
a/test-infra/camel-test-infra-azure-common/src/main/resources/org/apache/camel/test/infra/azure/common/services/container.properties
 
b/test-infra/camel-test-infra-azure-common/src/main/resources/org/apache/camel/test/infra/azure/common/services/container.properties
index 98b65b7da966..24e2057aa4b9 100644
--- 
a/test-infra/camel-test-infra-azure-common/src/main/resources/org/apache/camel/test/infra/azure/common/services/container.properties
+++ 
b/test-infra/camel-test-infra-azure-common/src/main/resources/org/apache/camel/test/infra/azure/common/services/container.properties
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 # Floci AZ: the local Azure services
-azure.container=mirror.gcr.io/floci/floci-az:0.16.0
+azure.container=mirror.gcr.io/floci/floci-az:0.17.0
 azure.container.version.exclude=latest,nightly,compat
 # Artemis: the AMQP broker that Floci AZ starts for Event Hubs and Service 
Bus. Floci AZ copies AMQP jars patched for one
 # Artemis version into it, so the version must be the one that the Floci AZ 
image of azure.container expects: it is
@@ -23,8 +23,6 @@ azure.container.version.exclude=latest,nightly,compat
 # this version for the Artemis services.
 azure.broker.container=mirror.gcr.io/apache/activemq-artemis:2.44.0
 azure.broker.container.version.include=2.44.0
-# Azurite: the local Blob and Queue services, until Floci AZ covers what their 
tests use
+# Azurite: the local Blob service, until Floci AZ covers what its tests use
 azure.storage.blob.container=mcr.microsoft.com/azure-storage/azurite:3.37.0
 
azure.storage.blob.container.version.exclude=table-alpha,amd64,arm64,preview,latest
-azure.storage.queue.container=mcr.microsoft.com/azure-storage/azurite:3.37.0
-azure.storage.queue.container.version.exclude=table-alpha,amd64,arm64,preview,latest
diff --git 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/clients/AzureStorageClientUtils.java
 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/clients/AzureStorageClientUtils.java
index 6a4c74e8cc6b..298f8c875932 100644
--- 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/clients/AzureStorageClientUtils.java
+++ 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/clients/AzureStorageClientUtils.java
@@ -44,10 +44,11 @@ public final class AzureStorageClientUtils {
         String endpoint;
 
         if (instanceType == null || 
instanceType.equals("local-azure-container")) {
-            endpoint = String.format("http://%s:%s/%s";, host, port, 
accountName);
+            // Floci AZ serves the Queue service on the port of its other 
services, under <account>-queue
+            endpoint = String.format("http://%s:%s/%s-queue";, host, port, 
accountName);
         } else {
             if (host == null || host.isEmpty()) {
-                endpoint = 
String.format("https://%s.queue.core.windows.net/%s";, accountName, accountKey);
+                endpoint = String.format("https://%s.queue.core.windows.net";, 
accountName);
             } else {
                 endpoint = String.format("http://%s:%s/%s";, host, port, 
accountName);
             }
diff --git 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueInfraService.java
 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueInfraService.java
index f0c62b6a191d..d29678301999 100644
--- 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueInfraService.java
+++ 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueInfraService.java
@@ -40,7 +40,7 @@ public class AzureStorageQueueInfraService implements 
AzureInfraService {
 
     @Override
     public AzureCredentialsHolder azureCredentials() {
-        // Default credentials for Azurite
+        // the account of the system properties
         return new AzureCredentialsHolder() {
             @Override
             public String accountName() {
diff --git 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueLocalContainerInfraService.java
 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueLocalContainerInfraService.java
index d20d64059934..6356c064cea1 100644
--- 
a/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueLocalContainerInfraService.java
+++ 
b/test-infra/camel-test-infra-azure-storage-queue/src/main/java/org/apache/camel/test/infra/azure/storage/queue/services/AzureStorageQueueLocalContainerInfraService.java
@@ -18,52 +18,16 @@
 package org.apache.camel.test.infra.azure.storage.queue.services;
 
 import org.apache.camel.spi.annotations.InfraService;
-import org.apache.camel.test.infra.azure.common.AzureConfigs;
-import org.apache.camel.test.infra.azure.common.AzureCredentialsHolder;
-import org.apache.camel.test.infra.azure.common.AzureProperties;
 import org.apache.camel.test.infra.azure.common.services.AzureInfraService;
-import org.apache.camel.test.infra.azure.common.services.AzureServices;
-import 
org.apache.camel.test.infra.azure.common.services.AzureStorageInfraService;
-import org.apache.camel.test.infra.common.LocalPropertyResolver;
+import org.apache.camel.test.infra.azure.common.services.FlociAzInfraService;
 
+/**
+ * A local Azure Storage Queue service: Floci AZ serves the Queue service of 
the storage account under
+ * {@code /<account>-queue}, on the port of its other services. {@code 
AzureStorageClientUtils} builds a client for that
+ * address.
+ */
 @InfraService(service = AzureInfraService.class,
-              description = "Local Azure services with Azurite",
+              description = "Local Azure Storage Queue service with Floci AZ",
               serviceAlias = "azure", serviceImplementationAlias = 
"storage-queue")
-public class AzureStorageQueueLocalContainerInfraService extends 
AzureStorageInfraService {
-
-    public AzureStorageQueueLocalContainerInfraService() {
-        
super(LocalPropertyResolver.getProperty(AzureStorageInfraService.class, 
AzureProperties.AZURE_STORAGE_QUEUE_CONTAINER));
-    }
-
-    @Override
-    public void registerProperties() {
-        super.registerProperties();
-
-        System.setProperty(AzureConfigs.PORT, 
String.valueOf(getContainer().getMappedPort(AzureServices.QUEUE_SERVICE)));
-    }
-
-    @Override
-    public AzureCredentialsHolder azureCredentials() {
-        return getContainer().azureCredentials();
-    }
-
-    @Override
-    public String host() {
-        return getContainer().getHost();
-    }
-
-    @Override
-    public int port() {
-        return getContainer().getMappedPort(AzureServices.QUEUE_SERVICE);
-    }
-
-    @Override
-    public String accountName() {
-        return getContainer().azureCredentials().accountName();
-    }
-
-    @Override
-    public String accessKey() {
-        return getContainer().azureCredentials().accountKey();
-    }
+public class AzureStorageQueueLocalContainerInfraService extends 
FlociAzInfraService {
 }

Reply via email to