From ca1accc2024d6f8a244f069674fee48c94cbc948 Mon Sep 17 00:00:00 2001 From: Domenico Francesco Bruscino Date: Tue, 14 Dec 2021 15:58:49 +0100 Subject: [PATCH] ARTEMIS-3605 Fix RestDeserializationTest --- .../activemq/artemis/tests/integration/rest/RestTestBase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java index acd66287dc..83c159d1dd 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java @@ -21,6 +21,7 @@ import java.io.IOException; import java.io.InputStream; import org.apache.activemq.artemis.tests.util.JMSTestBase; +import org.eclipse.jetty.security.DefaultAuthenticatorFactory; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector; @@ -82,6 +83,7 @@ public class RestTestBase extends JMSTestBase { webapp.setContextPath("/" + contextPath); } webapp.setWar(warFile.getAbsolutePath()); + webapp.getSecurityHandler().setAuthenticatorFactory(new DefaultAuthenticatorFactory()); handlers.addHandler(webapp); return webapp;