Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed May 29, 2024
1 parent 9eddcf5 commit 298e37d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/actions/test-summary-report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ runs:
const details = `<details><summary>View</summary>\n<pre>${failure[0].inner}</pre></details>`;
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 = `<code>${testCase.name}</code>`;
if (testCase.name.trim().length > 25) {
testName = `<details><summary>View</summary>\n<code>${testCase.name}</code></details>`;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Map<String, Object>> objects = new ObjectMapper().readValue(json,
new TypeReference<List<Map<String, Object>>>() {
});
return producerTemplate.requestBody(
"direct:json-to-csv",
objects,
String.class);
return null;
}

@SuppressWarnings("unchecked")
Expand All @@ -61,6 +54,6 @@ public String json2csv(String json) throws Exception {
@Consumes(MediaType.TEXT_PLAIN)
@Produces(MediaType.APPLICATION_JSON)
public List<List<Object>> csv2json(String csv) throws Exception {
return producerTemplate.requestBody("direct:csv-to-json", csv, List.class);
return null;
}
}
11 changes: 0 additions & 11 deletions integration-tests/nats/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,5 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>skip-testcontainers-tests</id>
<activation>
<property>
<name>skip-testcontainers-tests</name>
</property>
</activation>
<properties>
<skipTests>true</skipTests>
</properties>
</profile>
</profiles>
</project>

0 comments on commit 298e37d

Please sign in to comment.