This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit d418bf5076a25ec1749368ebb3f99239d225ff11
Author: Otavio Rodolfo Piske <opi...@redhat.com>
AuthorDate: Wed Jun 2 09:14:25 2021 +0200

    Fixed Polyglot loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-loader-polyglot/pom.xml           | 17 ++---------------
 .../camel/k/itests/polyglot/quarkus/Application.java    |  4 ++--
 2 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/itests/camel-k-itests-loader-polyglot/pom.xml 
b/itests/camel-k-itests-loader-polyglot/pom.xml
index 3308daf..837e849 100644
--- a/itests/camel-k-itests-loader-polyglot/pom.xml
+++ b/itests/camel-k-itests-loader-polyglot/pom.xml
@@ -35,8 +35,8 @@
 
         <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -90,19 +90,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <profiles>
diff --git 
a/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
 
b/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
index f062989..65c2cea 100644
--- 
a/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
+++ 
b/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.itests.polyglot.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{loaderName}/{name}")
-    @Consume(MediaType.APPLICATION_OCTET_STREAM)
+    @Consumes(MediaType.APPLICATION_OCTET_STREAM)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("loaderName") String loaderName, 
@PathParam("name") String name, byte[] code) throws Exception {
         return LoaderSupport.inspectSource(context, name + "." + loaderName, 
code);

Reply via email to