Skip to content

Commit 4c2d745

Browse files
authored
Change tests from using literal scalars "|" to folded scalars ">-" to fix OpenApiIT (#2833)
1 parent 79dcf4c commit 4c2d745

13 files changed

Lines changed: 14 additions & 14 deletions

tests/camel-kamelets-itest/src/test/resources/avro/avro-data-type.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ actions:
4646
- name: "http.sink.url"
4747
value: "http://localhost:${avro.webhook.server.port}/user"
4848
- name: "input"
49-
value: |
49+
value: >-
5050
{ \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 }
5151
- camel:
5252
jbang:

tests/camel-kamelets-itest/src/test/resources/avro/avro-serdes-action.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ actions:
4646
- name: "http.sink.url"
4747
value: "http://localhost:${avro.webhook.server.port}/user"
4848
- name: "input"
49-
value: |
49+
value: >-
5050
{ \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 }
5151
- camel:
5252
jbang:

tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-delete-item.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ actions:
6565
- name: "aws.ddb.item.title"
6666
value: "Back to the future"
6767
- name: "aws.ddb.json.data"
68-
value: |
68+
value: >-
6969
{"id": ${aws.ddb.item.id}}
7070
- groovy:
7171
script:

tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-put-item.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ actions:
6565
- name: "aws.ddb.item.title"
6666
value: "Star Wars IV"
6767
- name: "aws.ddb.json.data"
68-
value: |
68+
value: >-
6969
{ \"id\": ${aws.ddb.item.id}, \"year\": ${aws.ddb.item.year}, \"title\": \"${aws.ddb.item.title}\" }
7070
7171
# Create Camel JBang integration

tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ actions:
6767
- name: "aws.ddb.item.title.new"
6868
value: "King Kong - Historical"
6969
- name: "aws.ddb.item.directors"
70-
value: |
70+
value: >-
7171
[\"Merian C. Cooper\", \"Ernest B. Schoedsack\"]
7272
- name: "aws.ddb.json.data"
73-
value: |
73+
value: >-
7474
{ \"key\": {\"id\": ${aws.ddb.item.id}}, \"item\": {\"title\": \"${aws.ddb.item.title.new}\", \"year\": ${aws.ddb.item.year}, \"directors\": ${aws.ddb.item.directors}} }
7575
- groovy:
7676
script:

tests/camel-kamelets-itest/src/test/resources/aws/eventbridge/aws-eventbridge-sink.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variables:
3232
- name: "aws.eventbridge.detailType"
3333
value: "Object Created"
3434
- name: "aws.eventbridge.json.data"
35-
value: |
35+
value: >-
3636
{ \"message\": \"Hello AWS EventBridge!\" }
3737
- name: "timer.source.period"
3838
value: "10000"

tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-sink.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ variables:
2626
- name: "aws.kinesis.message"
2727
value: "Camel rocks!"
2828
- name: "aws.kinesis.json.data"
29-
value: |
29+
value: >-
3030
{ \"message\": \"${aws.kinesis.message}\" }
3131
- name: "timer.source.period"
3232
value: "10000"

tests/camel-kamelets-itest/src/test/resources/openapi/rest-openapi-sink-add-pet.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ actions:
4040
- name: "petId"
4141
value: "${petId}"
4242
- name: "pet"
43-
value: |
43+
value: >-
4444
{ \"id\": ${petId}, \"name\": \"fluffy\", \"category\": {\"id\": ${petId}, \"name\": \"dog\"}, \"photoUrls\": [ \"petstore/v3/photos/${petId}\" ], \"tags\": [{\"id\": ${petId}, \"name\": \"generated\"}], \"status\": \"available\"}
4545
- name: "spec.operation"
4646
value: "${spec.operation}"

tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-data-type.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ actions:
3838
- name: "http.sink.url"
3939
value: "http://localhost:${protobuf.webhook.server.port}/user"
4040
- name: "input"
41-
value: |
41+
value: >-
4242
{ \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 }
4343
- camel:
4444
jbang:

tests/camel-kamelets-itest/src/test/resources/protobuf/protobuf-serdes-action.citrus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ actions:
3838
- name: "http.sink.url"
3939
value: "http://localhost:${protobuf.webhook.server.port}/user"
4040
- name: "input"
41-
value: |
41+
value: >-
4242
{ \"id\": \"${uuid}\", \"firstname\": \"Sheldon\", \"lastname\": \"Cooper\", \"age\": 28 }
4343
- camel:
4444
jbang:

0 commit comments

Comments
 (0)