This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch cq-2.11.0-camel-3.18.0
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
The following commit(s) were added to refs/heads/cq-2.11.0-camel-3.18.0 by this
push:
new dfd141d2 Align to camel 3.18.0
dfd141d2 is described below
commit dfd141d21962280510bc014dd58b12475bc9b2f6
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Jul 28 11:46:11 2022 +0200
Align to camel 3.18.0
---
.../k/loader/yaml/quarkus/YamlLoaderTest.java | 28 -------------------
.../test/resources/routes_with_endpointdsl.yaml | 31 ----------------------
2 files changed, 59 deletions(-)
diff --git
a/itests/camel-k-itests-loader-yaml/src/test/java/org/apache/camel/k/loader/yaml/quarkus/YamlLoaderTest.java
b/itests/camel-k-itests-loader-yaml/src/test/java/org/apache/camel/k/loader/yaml/quarkus/YamlLoaderTest.java
index f1a82eec..466b9a43 100644
---
a/itests/camel-k-itests-loader-yaml/src/test/java/org/apache/camel/k/loader/yaml/quarkus/YamlLoaderTest.java
+++
b/itests/camel-k-itests-loader-yaml/src/test/java/org/apache/camel/k/loader/yaml/quarkus/YamlLoaderTest.java
@@ -57,32 +57,4 @@ public class YamlLoaderTest {
assertThat(p.getList("endpoints", String.class))
.contains("direct://yaml", "log://yaml");
}
-
- @Test
- public void testLoadRoutesWithEndpointDSL() throws IOException {
- String code;
-
- try (InputStream is =
YamlLoaderTest.class.getResourceAsStream("/routes_with_endpointdsl.yaml")) {
- code = IOHelper.loadText(is);
- }
-
- JsonPath p = RestAssured.given()
- .contentType(MediaType.TEXT_PLAIN)
- .accept(MediaType.APPLICATION_JSON)
- .body(code)
- .post("/test/load-routes/MyRoute")
- .then()
- .statusCode(200)
- .extract()
- .body()
- .jsonPath();
-
- assertThat(p.getList("components", String.class))
- .contains("direct");
- assertThat(p.getList("routes", String.class))
- .contains("yaml");
- assertThat(p.getList("endpoints", String.class))
- .contains("direct://route", "direct://route_result")
- .contains("direct://from", "direct://from_result");
- }
}
diff --git
a/itests/camel-k-itests-loader-yaml/src/test/resources/routes_with_endpointdsl.yaml
b/itests/camel-k-itests-loader-yaml/src/test/resources/routes_with_endpointdsl.yaml
deleted file mode 100644
index 6a53ac00..00000000
---
a/itests/camel-k-itests-loader-yaml/src/test/resources/routes_with_endpointdsl.yaml
+++ /dev/null
@@ -1,31 +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.
-#
-
-- route:
- id: yaml
- from:
- direct:
- name: 'route'
- steps:
- - direct:
- name: "route_result"
-- from:
- direct:
- name: "from"
- steps:
- - direct:
- name: "from_result"