Commit 9d607c8
Migrate all test classes from createService() to createSingletonService()
Switch all integration test classes to use the new singleton service
factories. This ensures each Testcontainers service is started only
once per JVM, which:
- Speeds up test suites by avoiding redundant container startups
- Enables parallel test execution (mvnd) without container conflicts
- Reduces CI resource consumption
Test isolation fixes for shared singleton instances:
- ZooKeeper ConsumeDataIT: use deleteAll() instead of delete() to
handle nodes with children from shared instances
- Google PubSub: catch AlreadyExistsException for topics/subscriptions
that may already exist in the shared emulator
- Hashicorp Vault: use per-class secretPath() to avoid data collisions
between tests sharing the same Vault instance
- Consul ConsulHealthIT: use @RegisterExtension instead of manual
lifecycle management
- Google PubSub ITs: use unique topic/subscription names per test class
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f9e463b commit 9d607c8
88 files changed
Lines changed: 216 additions & 186 deletions
File tree
- components
- camel-ai
- camel-chatscript/src/test/java/org/apache/camel/component
- camel-docling/src/test/java/org/apache/camel/component/docling/integration
- camel-kserve/src/test/java/org/apache/camel/component/kserve/it
- camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/integration
- camel-openai/src/test/java/org/apache/camel/component/openai/integration
- camel-tensorflow-serving/src/test/java/org/apache/camel/component/torchserve/it
- camel-arangodb/src/test/java/org/apache/camel/component/arangodb/integration
- camel-azure
- camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration
- camel-azure-storage-datalake/src/test/java/org/apache/camel/component/azure/storage/datalake/integration
- camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration
- camel-consul/src/test/java/org/apache/camel/component/consul
- cluster
- camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub
- integration
- camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration
- operations
- camel-hazelcast/src/test/java/org/apache/camel
- component/hazelcast
- policy
- processor
- aggregate/hazelcast
- idempotent/hazelcast
- camel-iggy/src/test/java/org/apache/camel/component/iggy
- camel-jms/src/test/java/org/apache/camel/component/jms
- issues
- camel-kafka/src/test/java/org/apache/camel/component/kafka/integration
- camel-keycloak/src/test/java/org/apache/camel/component/keycloak
- security
- camel-ldif/src/test/java/org/apache/camel/component/ldif
- camel-minio/src/test/java/org/apache/camel/component/minio/integration
- camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration
- camel-nats/src/test/java/org/apache/camel/component/nats/integration
- camel-paho-mqtt5/src/test/java/org/apache/camel/component/paho/mqtt5/integration
- camel-pqc/src/test/java/org/apache/camel/component/pqc
- camel-redis/src/test/java/org/apache/camel/component/redis/processor/aggregate/integration
- camel-solr/src/test/java/org/apache/camel/component/solr/integration
- camel-spring-parent
- camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat
- camel-spring-rabbitmq/src/test/java/org/apache/camel/component/springrabbit/integration
- camel-spring-redis/src/test/java/org/apache/camel/component/redis/integration
- camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration
- camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster
- group
- integration
- camel-zookeeper/src/test/java/org/apache/camel/component/zookeeper
- cluster/integration
- integration
- dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments