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

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

This task appears to have already been completed.

The automated integration tests for ConsulClusteredRoutePolicy now exist on the 
main branch:
- *ConsulClusteredRoutePolicyIT.java* — tests clustered route policy behavior
- *ConsulClusteredRoutePolicyFactoryIT.java* — tests the factory variant

Both use testcontainers via camel-test-infra-consul 
(ConsulServiceFactory.createSingletonService()) and are proper JUnit 5 
integration tests, exactly as described in this task.

The manual main class (ConsulClusteredRoutePolicyFactoryMain.java) was removed 
in commit a2c0e15c0b95 on the same day this issue was filed.

Please verify and close this task if confirmed.

_Note: This comment was generated by an AI coding agent on behalf of gnodet and 
requires manual verification._

> [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