From 58296c67f547cc93af37b9f0cac9bb1595dd0b53 Mon Sep 17 00:00:00 2001 From: Michael Dürre Date: Tue, 23 Jul 2019 17:16:20 +0200 Subject: fix test for apigateway MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bind testport only to localhost Issue-ID: SDNC-819 Signed-off-by: Michael Dürre Change-Id: I67bda6e44cb5eedc97bdfc22c398f29026b3b7b7 --- .../ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java b/sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java index 30732073b..7b7cba239 100644 --- a/sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java +++ b/sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java @@ -143,7 +143,7 @@ public class HelpServletBase { @Before public void initEsTestWebserver() throws IOException { - this.server = HttpServer.create(new InetSocketAddress(this.port), 0); + this.server = HttpServer.create(new InetSocketAddress("127.0.0.1",this.port), 0); this.httpThreadPool = Executors.newFixedThreadPool(5); this.server.setExecutor(this.httpThreadPool); this.server.createContext("/mwtn/test", new MyHandler()); -- cgit 1.2.3-korg