This is an automated email from the ASF dual-hosted git repository. ppalaga pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new c839c72 Upgrade to cq-maven-plugin 0.17.0, sanitize model.name when using it as a part of a URI c839c72 is described below commit c839c7264feee3d7c8ad91901fac1ba485556ce2 Author: Peter Palaga <ppal...@redhat.com> AuthorDate: Tue Aug 25 12:31:23 2020 +0200 Upgrade to cq-maven-plugin 0.17.0, sanitize model.name when using it as a part of a URI --- pom.xml | 2 +- tooling/create-extension-templates/Test.java | 2 +- tooling/create-extension-templates/TestResource.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 43d2b80..fd2d4df 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,7 @@ <maven-release-plugin.version>2.5.3</maven-release-plugin.version> <!-- NOTE: We pin to this version due to https://github.com/apache/camel-quarkus/issues/723 --> <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> - <cq-plugin.version>0.16.0</cq-plugin.version> + <cq-plugin.version>0.17.0</cq-plugin.version> <protobuf-java.version>3.11.0</protobuf-java.version> <proto-google-common-protos.version>1.17.0</proto-google-common-protos.version> <rpkgtests-maven-plugin.version>0.6.0</rpkgtests-maven-plugin.version> diff --git a/tooling/create-extension-templates/Test.java b/tooling/create-extension-templates/Test.java index f8d6fa0..ca11a9b 100644 --- a/tooling/create-extension-templates/Test.java +++ b/tooling/create-extension-templates/Test.java @@ -48,7 +48,7 @@ class [=toCapCamelCase(artifactIdBase)]Test { @Test public void load[=toCapCamelCase(model.kind)][=toCapCamelCase(model.name)]() { /* A simple autogenerated test */ - RestAssured.get("/[=artifactIdBase]/load/[=model.kind]/[=model.name]") + RestAssured.get("/[=artifactIdBase]/load/[=model.kind]/[=toKebabCase(model.name)]") .then() .statusCode(200); } diff --git a/tooling/create-extension-templates/TestResource.java b/tooling/create-extension-templates/TestResource.java index ff71fcb..77d718f 100644 --- a/tooling/create-extension-templates/TestResource.java +++ b/tooling/create-extension-templates/TestResource.java @@ -79,7 +79,7 @@ public class [=toCapCamelCase(artifactIdBase)]Resource { CamelContext context; [#list models as model] - @Path("/load/[=model.kind]/[=model.name]") + @Path("/load/[=model.kind]/[=toKebabCase(model.name)]") @GET @Produces(MediaType.TEXT_PLAIN) public Response load[=toCapCamelCase(model.kind)][=toCapCamelCase(model.name)]() throws Exception {