[ 
https://issues.apache.org/jira/browse/CAMEL-22523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066816#comment-18066816
 ] 

Guillaume Nodet commented on CAMEL-22523:
-----------------------------------------

It looks like 
[ConsulClusteredRoutePolicyFactoryIT|https://github.com/apache/camel/blob/main/components/camel-consul/src/test/java/org/apache/camel/component/consul/cluster/ConsulClusteredRoutePolicyFactoryIT.java]
 already covers this scenario (multi-node leader election with 
testcontainers-based Consul, using 
{{ClusteredRoutePolicyFactory.forNamespace()}}).

Can this be resolved?

> [camel-consul] Automate ConsulClusteredRoutePolicy test
> -------------------------------------------------------
>
>                 Key: CAMEL-22523
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22523
>             Project: Camel
>          Issue Type: Task
>          Components: tests
>            Reporter: Pasquale Congiusti
>            Priority: Minor
>              Labels: good-first-issue, help-wanted
>
> The camel-consul module has a manual test class 
> [ConsulClusteredRoutePolicyFactoryMain|https://github.com/apache/camel/blob/c2f180bea3accc23836dac1f6cfe615e53229b68/components/camel-consul/src/test/java/org/apache/camel/component/consul/cluster/ConsulClusteredRoutePolicyFactoryMain.java]
>  that demonstrates how to use {{ConsulClusteredRoutePolicyFactory}} with a 
> running Consul instance.
> This main class should be used as a basis to create a proper automated 
> integration test (IT) that:
> - Uses testcontainers (via camel-test-infra-consul) to start a Consul instance
> - Tests the clustered route policy behavior programmatically
> - Replaces or supplements the manual main class with an automated JUnit 5 test
> The existing main class serves as a reference for the test scenario to 
> implement.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to