diff --git a/data-prepper-core/src/main/java/org/opensearch/dataprepper/core/pipeline/server/UpdatePipelineConfigHandler.java b/data-prepper-core/src/main/java/org/opensearch/dataprepper/core/pipeline/server/UpdatePipelineConfigHandler.java index d240ba873d..e2bbf11af6 100644 --- a/data-prepper-core/src/main/java/org/opensearch/dataprepper/core/pipeline/server/UpdatePipelineConfigHandler.java +++ b/data-prepper-core/src/main/java/org/opensearch/dataprepper/core/pipeline/server/UpdatePipelineConfigHandler.java @@ -15,8 +15,6 @@ import javax.ws.rs.HttpMethod; import java.io.IOException; import java.net.HttpURLConnection; -import java.util.ArrayList; -import java.util.List; import java.io.InputStream; /** diff --git a/data-prepper-core/src/test/java/org/opensearch/dataprepper/core/pipeline/server/DataPrepperServerTest.java b/data-prepper-core/src/test/java/org/opensearch/dataprepper/core/pipeline/server/DataPrepperServerTest.java index d2f7074b9f..00d5397709 100644 --- a/data-prepper-core/src/test/java/org/opensearch/dataprepper/core/pipeline/server/DataPrepperServerTest.java +++ b/data-prepper-core/src/test/java/org/opensearch/dataprepper/core/pipeline/server/DataPrepperServerTest.java @@ -51,6 +51,9 @@ public class DataPrepperServerTest { @Mock private GetPipelinesHandler getPipelinesHandler; + @Mock + private UpdatePipelineConfigHandler updatePipelineConfigHandler; + @Mock private PrometheusMeterRegistry prometheusMeterRegistry; @@ -65,8 +68,8 @@ public class DataPrepperServerTest { @AfterEach public void tearDown() { - verifyNoMoreInteractions(server, httpServerProvider, listPipelinesHandler, shutdownHandler, - prometheusMeterRegistry, authenticator, context, socketAddress); + verifyNoMoreInteractions(server, httpServerProvider, listPipelinesHandler, updatePipelineConfigHandler, + shutdownHandler, prometheusMeterRegistry, authenticator, context, socketAddress); } @Test @@ -161,7 +164,9 @@ private void verifyServerStart() { verify(socketAddress).getPort(); } - private DataPrepperServer createObjectUnderTest(final PrometheusMeterRegistry prometheusMeterRegistry, final Authenticator authenticator) { - return new DataPrepperServer(httpServerProvider, listPipelinesHandler, shutdownHandler, getPipelinesHandler, prometheusMeterRegistry, authenticator); + private DataPrepperServer createObjectUnderTest(final PrometheusMeterRegistry prometheusMeterRegistry, + final Authenticator authenticator) { + return new DataPrepperServer(httpServerProvider, listPipelinesHandler, updatePipelineConfigHandler, + shutdownHandler, getPipelinesHandler, prometheusMeterRegistry, authenticator); } }