This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-upgrade-recipes.git
commit b041e14964230cca019da8579ec40ebfc415141d Author: croway <[email protected]> AuthorDate: Mon Nov 23 10:22:49 2026 +0100 Run the 4.22.1 tests under the aggregates that chain camel422_1 CamelUpdate422_1Test skipped all its tests whenever a suite recipe was set, because no aggregate chained camel422_1 when it was written. The 4.22 LTS aggregate and latest.yaml (through 4.23.yaml) chain it now, so with the skips CamelUpdate422LtsTestSuite still passed with camel422_1 removed from 4.22LTS.yaml. Remove the skips. The YAML inputs now nest steps under from: the route-level steps form was rewritten by camel40 CamelYamlStepsInFromRecipe under an aggregate, which changed the expected output. With camel422_1 removed from 4.22LTS.yaml, three tests now fail under the 4.22 LTS suite. --- .../apache/camel/upgrade/CamelUpdate422_1Test.java | 62 ++++++++++------------ 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_1Test.java b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_1Test.java index 5394c9b..75e124f 100644 --- a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_1Test.java +++ b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_1Test.java @@ -17,7 +17,6 @@ package org.apache.camel.upgrade; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIfSystemProperty; import org.openrewrite.test.RecipeSpec; import org.openrewrite.test.RewriteTest; import org.openrewrite.test.TypeValidation; @@ -46,7 +45,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void javaDslFlagsOccurrencesAndLeavesLookalikesAndUnrelatedConstantAlone() { //language=java rewriteRun( @@ -121,7 +119,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void javaDslWithoutCamelOpenAIDependencyIsUnchanged() { //language=java rewriteRun( @@ -144,7 +141,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void javaDslIsIdempotent() { //language=java rewriteRun( @@ -167,7 +163,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void yamlDslFlagsOccurrencesAndLeavesLookalikesAlone() { //language=yaml rewriteRun( @@ -178,32 +173,32 @@ public class CamelUpdate422_1Test implements RewriteTest { - route: from: uri: "direct:openai" - steps: - - setProperty: - name: CamelOpenAIResponseModel - constant: keep-model - - setProperty: - name: CamelOpenAIResponse - simple: "${exchangeProperty.CamelOpenAIResponse}" - - setBody: - simple: "${exchangeProperty.CamelOpenAIResponse.data}" + steps: + - setProperty: + name: CamelOpenAIResponseModel + constant: keep-model + - setProperty: + name: CamelOpenAIResponse + simple: "${exchangeProperty.CamelOpenAIResponse}" + - setBody: + simple: "${exchangeProperty.CamelOpenAIResponse.data}" """, """ - route: from: uri: "direct:openai" - steps: - - setProperty: - name: CamelOpenAIResponseModel - constant: keep-model - - setProperty: - # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. - name: CamelOpenAIResponse - # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. - simple: "${exchangeProperty.CamelOpenAIResponse}" - - setBody: - # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. - simple: "${exchangeProperty.CamelOpenAIResponse.data}" + steps: + - setProperty: + name: CamelOpenAIResponseModel + constant: keep-model + - setProperty: + # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. + name: CamelOpenAIResponse + # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. + simple: "${exchangeProperty.CamelOpenAIResponse}" + - setBody: + # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. + simple: "${exchangeProperty.CamelOpenAIResponse.data}" """ ) ) @@ -211,7 +206,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void yamlDslIsIdempotent() { //language=yaml rewriteRun( @@ -222,12 +216,12 @@ public class CamelUpdate422_1Test implements RewriteTest { - route: from: uri: "direct:openai" - steps: - - setProperty: - # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. - name: CamelOpenAIResponse - # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. - simple: "${exchangeProperty.CamelOpenAIResponse}" + steps: + - setProperty: + # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. + name: CamelOpenAIResponse + # CAMEL-24539: with storeFullResponse=true, embeddings and audio operations now store the full response under CamelOpenAIEmbeddingsResponse or CamelOpenAIAudio*Response instead of CamelOpenAIResponse; review this usage. + simple: "${exchangeProperty.CamelOpenAIResponse}" """ ) ) @@ -235,7 +229,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void xmlDslFlagsOccurrencesAndLeavesLookalikesAlone() { //language=xml rewriteRun( @@ -272,7 +265,6 @@ public class CamelUpdate422_1Test implements RewriteTest { } @Test - @DisabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = ".+") void xmlDslIsIdempotent() { //language=xml rewriteRun(
