From 8311b3d163723148a6faec7545cdbdb3fccb4c18 Mon Sep 17 00:00:00 2001 From: Ezequiel Werner Date: Fri, 14 Jun 2024 17:52:55 -0300 Subject: [PATCH] Ignore test with a TODO --- .../requester/HttpRequestExpectHeaderFailTestCase.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java b/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java index 6631ae4d9..ee2f6cf5e 100644 --- a/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java +++ b/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java @@ -8,7 +8,11 @@ import static org.mule.runtime.http.api.HttpConstants.HttpStatus.EXPECTATION_FAILED; -import static org.junit.Assert.assertThat; +import static java.lang.System.getProperty; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.is; +import static org.junit.Assume.assumeThat; import org.mule.extension.http.api.HttpResponseAttributes; import org.mule.runtime.core.api.event.CoreEvent; @@ -31,6 +35,9 @@ protected String getConfigFile() { @Test public void handlesExpectationFailedResponse() throws Exception { + // TODO (W-15666548): Enable this for NETTY too. + assumeThat(getProperty("mule.http.service.implementation", "GRIZZLY"), is("GRIZZLY")); + startExpectFailedServer(); // Set a payload that will fail when consumed. As the server rejects the request after processing @@ -48,5 +55,4 @@ public int read() throws IOException { stopServer(); } - }