You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by al...@apache.org on 2022/08/10 12:29:16 UTC

[camel-quarkus] branch main updated: perf-regression: use pure Camel transformation #3974

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 2e85aeb1d8 perf-regression: use pure Camel transformation #3974
2e85aeb1d8 is described below

commit 2e85aeb1d8208fc9556bfce8587e583ea288708c
Author: aldettinger <al...@gmail.com>
AuthorDate: Wed Aug 10 11:35:45 2022 +0200

    perf-regression: use pure Camel transformation #3974
---
 .../cq-perf-regression-scenario.hf.yaml                |   2 +-
 .../cq-perf-regression-sample-base/pom.xml             |   4 ----
 .../regression/PerfRegressionSampleRouteBuilder.java   |   2 +-
 .../src/main/resources/application.properties          |  17 -----------------
 .../src/main/resources/request.adm                     | Bin 1597 -> 0 bytes
 5 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/tooling/perf-regression/cq-perf-regression-sample-base/cq-perf-regression-scenario.hf.yaml b/tooling/perf-regression/cq-perf-regression-sample-base/cq-perf-regression-scenario.hf.yaml
index 82a38dc9e2..5c9f883c6f 100644
--- a/tooling/perf-regression/cq-perf-regression-sample-base/cq-perf-regression-scenario.hf.yaml
+++ b/tooling/perf-regression/cq-perf-regression-sample-base/cq-perf-regression-scenario.hf.yaml
@@ -36,4 +36,4 @@ phases:
         - httpRequest:
             POST: /hello
             body:
-              pattern: '{"id":"${my-random-uuid}"}'
+              pattern: '${my-random-uuid}'
diff --git a/tooling/perf-regression/cq-perf-regression-sample-base/pom.xml b/tooling/perf-regression/cq-perf-regression-sample-base/pom.xml
index 666a392ffb..affc7ce5d0 100644
--- a/tooling/perf-regression/cq-perf-regression-sample-base/pom.xml
+++ b/tooling/perf-regression/cq-perf-regression-sample-base/pom.xml
@@ -64,10 +64,6 @@
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-platform-http</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-atlasmap</artifactId>
-        </dependency>
     </dependencies>
     <build>
         <plugins>
diff --git a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/java/org/apache/camel/quarkus/performance/regression/PerfRegressionSampleRouteBuilder.java b/tooling/perf-regression/cq-perf-regression-sample-base/src/main/java/org/apache/camel/quarkus/performance/regression/PerfRegressionSampleRouteBuilder.java
index 92a1e59795..d7e2decff8 100644
--- a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/java/org/apache/camel/quarkus/performance/regression/PerfRegressionSampleRouteBuilder.java
+++ b/tooling/perf-regression/cq-perf-regression-sample-base/src/main/java/org/apache/camel/quarkus/performance/regression/PerfRegressionSampleRouteBuilder.java
@@ -22,7 +22,7 @@ public class PerfRegressionSampleRouteBuilder extends RouteBuilder {
 
     @Override
     public void configure() throws Exception {
-        from("platform-http:/hello").to("atlasmap:request.adm");
+        from("platform-http:/hello").transform(simple("Hello ${body}"));
     }
 
 }
diff --git a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/application.properties b/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/application.properties
deleted file mode 100644
index c8887b99df..0000000000
--- a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/application.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements.  See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License.  You may obtain a copy of the License at
-##
-##      http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-quarkus.native.resources.includes = request.adm
\ No newline at end of file
diff --git a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/request.adm b/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/request.adm
deleted file mode 100644
index c9f3bd6ef1..0000000000
Binary files a/tooling/perf-regression/cq-perf-regression-sample-base/src/main/resources/request.adm and /dev/null differ