You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/15 11:21:27 UTC
[camel-k-runtime] 04/04: Removed an endpoint DSL test
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 99a0a5d5f9ba3b38a69eff7928d9460fb5c827d7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu May 5 13:05:08 2022 +0200
Removed an endpoint DSL test
This feature was removed in Camel 3.17
---
.../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"