From b13f5527c4432b217f6b4f39fb15ace54d7e80de Mon Sep 17 00:00:00 2001 From: Tom Cunningham Date: Fri, 15 May 2026 06:54:19 -0400 Subject: [PATCH] Change tests from using literal scalars "|" to folded scalars ">-" to fix OpenApiIT --- .../src/test/resources/avro/avro-data-type.citrus.it.yaml | 2 +- .../src/test/resources/avro/avro-serdes-action.citrus.it.yaml | 2 +- .../resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml | 2 +- .../resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml | 2 +- .../resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml | 4 ++-- .../aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml | 2 +- .../resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml | 2 +- .../openapi/rest-openapi-sink-add-pet.citrus.it.yaml | 2 +- .../test/resources/protobuf/protobuf-data-type.citrus.it.yaml | 2 +- .../resources/protobuf/protobuf-serdes-action.citrus.it.yaml | 2 +- .../transformation/data-type-action-pipe.citrus.it.yaml | 2 +- .../transformation/extract-field-action-pipe.citrus.it.yaml | 2 +- .../transformation/insert-field-action-pipe.citrus.it.yaml | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/camel-kamelets-itest/src/test/resources/avro/avro-data-type.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/avro/avro-data-type.citrus.it.yaml index b12643eda..ddab21808 100644 --- a/tests/camel-kamelets-itest/src/test/resources/avro/avro-data-type.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/avro/avro-data-type.citrus.it.yaml @@ -46,7 +46,7 @@ actions: - name: "http.sink.url" value: "http://localhost:${avro.webhook.server.port}/user" - name: "input" - value: | + value: >- { \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 } - camel: jbang: diff --git a/tests/camel-kamelets-itest/src/test/resources/avro/avro-serdes-action.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/avro/avro-serdes-action.citrus.it.yaml index d1d6f5355..37eb240d9 100644 --- a/tests/camel-kamelets-itest/src/test/resources/avro/avro-serdes-action.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/avro/avro-serdes-action.citrus.it.yaml @@ -46,7 +46,7 @@ actions: - name: "http.sink.url" value: "http://localhost:${avro.webhook.server.port}/user" - name: "input" - value: | + value: >- { \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 } - camel: jbang: diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml index b299e2e10..5d8e87d5c 100644 --- a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml @@ -65,7 +65,7 @@ actions: - name: "aws.ddb.item.title" value: "Back to the future" - name: "aws.ddb.json.data" - value: | + value: >- {"id": ${aws.ddb.item.id}} - groovy: script: diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml index e03ed2ad8..93146ea4d 100644 --- a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml @@ -65,7 +65,7 @@ actions: - name: "aws.ddb.item.title" value: "Star Wars IV" - name: "aws.ddb.json.data" - value: | + value: >- { \"id\": ${aws.ddb.item.id}, \"year\": ${aws.ddb.item.year}, \"title\": \"${aws.ddb.item.title}\" } # Create Camel JBang integration diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml index 59ab62d15..0765021e8 100644 --- a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml @@ -67,10 +67,10 @@ actions: - name: "aws.ddb.item.title.new" value: "King Kong - Historical" - name: "aws.ddb.item.directors" - value: | + value: >- [\"Merian C. Cooper\", \"Ernest B. Schoedsack\"] - name: "aws.ddb.json.data" - value: | + value: >- { \"key\": {\"id\": ${aws.ddb.item.id}}, \"item\": {\"title\": \"${aws.ddb.item.title.new}\", \"year\": ${aws.ddb.item.year}, \"directors\": ${aws.ddb.item.directors}} } - groovy: script: diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml index cb81d55ad..ae5c09944 100644 --- a/tests/camel-kamelets-itest/src/test/resources/aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml @@ -32,7 +32,7 @@ variables: - name: "aws.eventbridge.detailType" value: "Object Created" - name: "aws.eventbridge.json.data" - value: | + value: >- { \"message\": \"Hello AWS EventBridge!\" } - name: "timer.source.period" value: "10000" diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml index 32eeabdd8..57ab64e0f 100644 --- a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml @@ -26,7 +26,7 @@ variables: - name: "aws.kinesis.message" value: "Camel rocks!" - name: "aws.kinesis.json.data" - value: | + value: >- { \"message\": \"${aws.kinesis.message}\" } - name: "timer.source.period" value: "10000" diff --git a/tests/camel-kamelets-itest/src/test/resources/openapi/rest-openapi-sink-add-pet.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/openapi/rest-openapi-sink-add-pet.citrus.it.yaml index f51a20f65..45c8f358f 100644 --- a/tests/camel-kamelets-itest/src/test/resources/openapi/rest-openapi-sink-add-pet.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/openapi/rest-openapi-sink-add-pet.citrus.it.yaml @@ -40,7 +40,7 @@ actions: - name: "petId" value: "${petId}" - name: "pet" - value: | + value: >- { \"id\": ${petId}, \"name\": \"fluffy\", \"category\": {\"id\": ${petId}, \"name\": \"dog\"}, \"photoUrls\": [ \"petstore/v3/photos/${petId}\" ], \"tags\": [{\"id\": ${petId}, \"name\": \"generated\"}], \"status\": \"available\"} - name: "spec.operation" value: "${spec.operation}" diff --git a/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-data-type.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-data-type.citrus.it.yaml index 0982c7da3..2ec55e5be 100644 --- a/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-data-type.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-data-type.citrus.it.yaml @@ -38,7 +38,7 @@ actions: - name: "http.sink.url" value: "http://localhost:${protobuf.webhook.server.port}/user" - name: "input" - value: | + value: >- { \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 } - camel: jbang: diff --git a/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-serdes-action.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-serdes-action.citrus.it.yaml index 5a40c8ca6..8eb7e21f5 100644 --- a/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-serdes-action.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-serdes-action.citrus.it.yaml @@ -38,7 +38,7 @@ actions: - name: "http.sink.url" value: "http://localhost:${protobuf.webhook.server.port}/user" - name: "input" - value: | + value: >- { \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 } - camel: jbang: diff --git a/tests/camel-kamelets-itest/src/test/resources/transformation/data-type-action-pipe.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/transformation/data-type-action-pipe.citrus.it.yaml index 8b926203b..4b1465592 100644 --- a/tests/camel-kamelets-itest/src/test/resources/transformation/data-type-action-pipe.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/transformation/data-type-action-pipe.citrus.it.yaml @@ -36,7 +36,7 @@ actions: - name: "http.sink.url" value: "${http.server.url}" - name: "input" - value: | + value: >- { \"id\": \"${uuid}\" } # Verify Http request diff --git a/tests/camel-kamelets-itest/src/test/resources/transformation/extract-field-action-pipe.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/transformation/extract-field-action-pipe.citrus.it.yaml index a442265d6..1688a5f20 100644 --- a/tests/camel-kamelets-itest/src/test/resources/transformation/extract-field-action-pipe.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/transformation/extract-field-action-pipe.citrus.it.yaml @@ -40,7 +40,7 @@ actions: - name: "field.name" value: "${field.name}" - name: "input" - value: | + value: >- { \"id\": \"citrus:randomUUID()\", \"${field.name}\": \"${field.value}\" } # Verify Http request diff --git a/tests/camel-kamelets-itest/src/test/resources/transformation/insert-field-action-pipe.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/transformation/insert-field-action-pipe.citrus.it.yaml index 0ae464c4a..ded3f4177 100644 --- a/tests/camel-kamelets-itest/src/test/resources/transformation/insert-field-action-pipe.citrus.it.yaml +++ b/tests/camel-kamelets-itest/src/test/resources/transformation/insert-field-action-pipe.citrus.it.yaml @@ -44,7 +44,7 @@ actions: - name: "field.value" value: "${field.value}" - name: "input" - value: | + value: >- { \"id\": \"${id}\" } # Verify Http request