fix test for apigateway 74/91874/1
authorMichael Dürre <michael.duerre@highstreet-technologies.com>
Tue, 23 Jul 2019 15:16:20 +0000 (17:16 +0200)
committerMichael Dürre <michael.duerre@highstreet-technologies.com>
Tue, 23 Jul 2019 15:17:21 +0000 (17:17 +0200)
bind testport only to localhost

Issue-ID: SDNC-819
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I67bda6e44cb5eedc97bdfc22c398f29026b3b7b7

sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java

index 3073207..7b7cba2 100644 (file)
@@ -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());