You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2023/02/08 10:00:41 UTC
[camel-quarkus] 27/40: Disable XmlTest.xtokenizeLanguage temporarily #4494
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 96a5b2399efd025b7a3447ff3dfed01b786f650d
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Tue Feb 7 14:03:17 2023 +0100
Disable XmlTest.xtokenizeLanguage temporarily #4494
---
integration-tests/xml/pom.xml | 4 ++++
.../org/apache/camel/quarkus/component/xml/it/XmlRouteBuilder.java | 3 ++-
.../test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java | 2 ++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/integration-tests/xml/pom.xml b/integration-tests/xml/pom.xml
index 698e848cda..49998cc977 100644
--- a/integration-tests/xml/pom.xml
+++ b/integration-tests/xml/pom.xml
@@ -30,6 +30,10 @@
<name>Camel Quarkus :: Integration Tests :: XML</name>
<description>Integration tests for various XML related extensions</description>
+ <properties>
+ <ci.native.tests.skip>true</ci.native.tests.skip><!-- https://github.com/apache/camel-quarkus/issues/4494 -->
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
diff --git a/integration-tests/xml/src/main/java/org/apache/camel/quarkus/component/xml/it/XmlRouteBuilder.java b/integration-tests/xml/src/main/java/org/apache/camel/quarkus/component/xml/it/XmlRouteBuilder.java
index 1383f2172e..98ec3095c4 100644
--- a/integration-tests/xml/src/main/java/org/apache/camel/quarkus/component/xml/it/XmlRouteBuilder.java
+++ b/integration-tests/xml/src/main/java/org/apache/camel/quarkus/component/xml/it/XmlRouteBuilder.java
@@ -21,7 +21,6 @@ import org.w3c.dom.Document;
import io.quarkus.runtime.annotations.RegisterForReflection;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.xslt.saxon.XsltSaxonAggregationStrategy;
-import org.apache.camel.support.builder.Namespaces;
// These reflections registrations should be removed with fixing https://github.com/apache/camel-quarkus/issues/1615
@RegisterForReflection(classNames = {
@@ -54,10 +53,12 @@ public class XmlRouteBuilder extends RouteBuilder {
.otherwise()
.setBody(constant("Invalid country code"));
+ /* https://github.com/apache/camel-quarkus/issues/4494
from(DIRECT_XTOKENIZE)
.split()
.xtokenize("//C:child", new Namespaces("C", "urn:c"))
.to("seda:xtokenize-result");
+ */
from("direct:aggregate")
.aggregate(new XsltSaxonAggregationStrategy("xslt/aggregate.xsl"))
diff --git a/integration-tests/xml/src/test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java b/integration-tests/xml/src/test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java
index b629e6117f..52ead9321a 100644
--- a/integration-tests/xml/src/test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java
+++ b/integration-tests/xml/src/test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java
@@ -27,6 +27,7 @@ import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@@ -208,6 +209,7 @@ class XmlTest {
}
@Test
+ @Disabled("https://github.com/apache/camel-quarkus/issues/4494")
public void xtokenizeLanguage() {
String expectedResult = "<c:child some_attr='a' anotherAttr='a' xmlns:c=\"urn:c\"></c:child>,<c:child some_attr='b' anotherAttr='b' xmlns:c=\"urn:c\"></c:child>";
String xml = "<?xml version='1.0' encoding='UTF-8'?>"