From 298e37d8797ebbb6f71ba5a056c21d3ef9a3b89c Mon Sep 17 00:00:00 2001 From: James Netherton Date: Wed, 29 May 2024 08:58:40 +0100 Subject: [PATCH] WIP --- .github/actions/test-summary-report/action.yaml | 2 +- .github/workflows/ci-build.yaml | 2 +- .../camel/quarkus/component/csv/it/CsvResource.java | 11 ++--------- integration-tests/nats/pom.xml | 11 ----------- 4 files changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/actions/test-summary-report/action.yaml b/.github/actions/test-summary-report/action.yaml index abf4a356d6c1..118fc3024c28 100644 --- a/.github/actions/test-summary-report/action.yaml +++ b/.github/actions/test-summary-report/action.yaml @@ -69,7 +69,7 @@ runs: const details = `
View\n
${failure[0].inner}
`; let testName = ""; - if (testCase.name !== undefined && testCase.name.trim().length > 0) { + if ((typeof testCase.name === 'string' || testCase.name instanceof String) && (testCase.name.trim().length > 0)) { testName = `${testCase.name}`; if (testCase.name.trim().length > 25) { testName = `
View\n${testCase.name}
`; diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 250f94b68ed0..474daf943f03 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -61,7 +61,7 @@ env: jobs: pre-build-checks: - if: github.repository == 'apache/camel-quarkus' + if: github.repository == 'jamesnetherton/camel-quarkus' runs-on: ubuntu-latest outputs: continue-build: ${{ steps.pre-build-checks.outputs.continue-build }} diff --git a/integration-tests/csv/src/main/java/org/apache/camel/quarkus/component/csv/it/CsvResource.java b/integration-tests/csv/src/main/java/org/apache/camel/quarkus/component/csv/it/CsvResource.java index 98eaed916455..7551a911721c 100644 --- a/integration-tests/csv/src/main/java/org/apache/camel/quarkus/component/csv/it/CsvResource.java +++ b/integration-tests/csv/src/main/java/org/apache/camel/quarkus/component/csv/it/CsvResource.java @@ -45,14 +45,7 @@ public class CsvResource { @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) public String json2csv(String json) throws Exception { - LOG.infof("Transforming json %s", json); - final List> objects = new ObjectMapper().readValue(json, - new TypeReference>>() { - }); - return producerTemplate.requestBody( - "direct:json-to-csv", - objects, - String.class); + return null; } @SuppressWarnings("unchecked") @@ -61,6 +54,6 @@ public String json2csv(String json) throws Exception { @Consumes(MediaType.TEXT_PLAIN) @Produces(MediaType.APPLICATION_JSON) public List> csv2json(String csv) throws Exception { - return producerTemplate.requestBody("direct:csv-to-json", csv, List.class); + return null; } } diff --git a/integration-tests/nats/pom.xml b/integration-tests/nats/pom.xml index 92e21f513ff7..247e0e7bd164 100644 --- a/integration-tests/nats/pom.xml +++ b/integration-tests/nats/pom.xml @@ -148,16 +148,5 @@ - - skip-testcontainers-tests - - - skip-testcontainers-tests - - - - true - -