[
https://issues.apache.org/jira/browse/CAMEL-27511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-27511 started by Aurélien Pupier.
-----------------------------------------------
> Fix flaky test OpenApiScaffoldRestOpenApiTest
> ---------------------------------------------
>
> Key: CAMEL-27511
> URL: https://issues.apache.org/jira/browse/CAMEL-27511
> Project: Camel
> Issue Type: Test
> Components: camel-mcp-server
> Affects Versions: 4.24.0
> Reporter: Aurélien Pupier
> Assignee: Aurélien Pupier
> Priority: Major
>
> [the test started to be very flaky on the 22nd November, it was very stable
> before.|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.dsl.jbang.core.commands.mcp.OpenApiScaffoldRestOpenApiTest&tests.test=scaffoldedRouteOfAnOperationWithoutOperationIdIsCalled]
> {noformat}
> org.opentest4j.AssertionFailedError: expected: "TODO: implement
> GENOPID_GET.pets._petId_"
> but was: null
> at
> org.apache.camel.dsl.jbang.core.commands.mcp.OpenApiScaffoldRestOpenApiTest.scaffoldedRouteOfAnOperationWithoutOperationIdIsCalled(OpenApiScaffoldRestOpenApiTest.java:74)
>
> {noformat}
> {noformat}
> 2026-11-24 11:52:56,718 INFO
> [org.apache.camel.cli.connector.LocalCliConnector] (ForkJoinPool-1-worker-24)
> Camel CLI connector enabled
> 2026-11-24 11:52:56,939 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Apache Camel 4.24.0-SNAPSHOT (camel-3) is starting
>
> 2026-11-24 11:52:57,146 INFO
> [org.apache.camel.cli.connector.LocalCliConnector] (Camel Thread #5 -
> Terminate JVM task) Camel CLI connector terminating JVM
> 2026-11-24 11:52:57,222 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Routes startup (total:4 rest-dsl:1)
> 2026-11-24 11:52:57,222 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Started listPets (direct://listPets)
> 2026-11-24 11:52:57,223 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Started createPets (direct://createPets)
> 2026-11-24 11:52:57,223 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Started GENOPID_GET.pets._petId_
> (direct://GENOPID_GET.pets._petId_)
> 2026-11-24 11:52:57,223 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Started route1 (rest-openapi://petstore.yaml)
>
> 2026-11-24 11:52:57,223 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext]
> (ForkJoinPool-1-worker-24) Apache Camel 4.24.0-SNAPSHOT (camel-3) started in
> 283ms (build:0ms init:0ms start:283ms)
> 2026-11-24 11:52:57,223 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Apache Camel 4.24.0-SNAPSHOT (camel-3) is shutting down
> (timeout:45s)
> 2026-11-24 11:52:57,240 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Routes stopped (total:4 rest-dsl:1)
> 2026-11-24 11:52:57,240 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Stopped route1 (rest-openapi://petstore.yaml)
> 2026-11-24 11:52:57,240 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Stopped GENOPID_GET.pets._petId_
> (direct://GENOPID_GET.pets._petId_)
> 2026-11-24 11:52:57,240 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Stopped createPets (direct://createPets)
> 2026-11-24 11:52:57,241 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Stopped listPets (direct://listPets)
> 2026-11-24 11:52:57,241 WARN
> [org.apache.camel.impl.engine.DefaultInflightRepository] (Camel Thread #5 -
> Terminate JVM task) Shutting down while there are still 1 inflight exchanges.
>
> 2026-11-24 11:52:57,244 INFO
> [org.apache.camel.impl.engine.AbstractCamelContext] (Camel Thread #5 -
> Terminate JVM task) Apache Camel 4.24.0-SNAPSHOT (camel-3) shutdown in 21ms
> (uptime:0s)
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)