From 73ca35d85189b7b74417ad4166f00fccdaf12436 Mon Sep 17 00:00:00 2001 From: "david.mcweeney" Date: Tue, 10 Aug 2021 14:23:28 +0100 Subject: DMAAP-DR - Whitelist removal Signed-off-by: david.mcweeney Change-Id: I6a12c9ae5f5aaff6045b9b6ee7d5c33274e94dc3 Issue-ID: DMAAP-1624 --- .../java/org/onap/dmaap/datarouter/node/NodeServletTest.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'datarouter-node/src/test') diff --git a/datarouter-node/src/test/java/org/onap/dmaap/datarouter/node/NodeServletTest.java b/datarouter-node/src/test/java/org/onap/dmaap/datarouter/node/NodeServletTest.java index ad2fcf5d..4340b018 100644 --- a/datarouter-node/src/test/java/org/onap/dmaap/datarouter/node/NodeServletTest.java +++ b/datarouter-node/src/test/java/org/onap/dmaap/datarouter/node/NodeServletTest.java @@ -204,17 +204,6 @@ public class NodeServletTest { verifyEnteringExitCalled(listAppender); } - @Test - public void Given_Request_Is_HTTP_PUT_And_Internal_Publish_But_Invalid_Header_Then_Bad_Request_Response_Is_Generated() throws Exception { - when(request.getPathInfo()).thenReturn("/internal/publish/1/blah"); - when(request.getRemoteAddr()).thenReturn("1.2.3.4"); - when(config.isAnotherNode(anyString(), anyString())).thenReturn(true); - when(request.getHeader("X-DMAAP-DR-PUBLISH-ID")).thenReturn("User1+"); - nodeServlet.doPut(request, response); - verify(response).sendError(eq(HttpServletResponse.SC_BAD_REQUEST), anyString()); - verifyEnteringExitCalled(listAppender); - } - @Test public void Given_Request_Is_HTTP_PUT_On_Publish_And_Ingress_Node_Is_Provided_Then_Request_Is_Redirected() throws Exception { setNodeConfigManagerToAllowRedirectOnIngressNode(); -- cgit 1.2.3-korg