diff options
author | Michael Dürre <michael.duerre@highstreet-technologies.com> | 2019-07-23 17:16:20 +0200 |
---|---|---|
committer | Michael Dürre <michael.duerre@highstreet-technologies.com> | 2019-07-23 17:17:21 +0200 |
commit | 58296c67f547cc93af37b9f0cac9bb1595dd0b53 (patch) | |
tree | bd3720359a1f96fe89f9fb1da2f5bcbdbc0c429f /sdnr/wt/apigateway/provider | |
parent | 2267c842bdc69c69b695282311f17f6f33b2ebf5 (diff) |
fix test for apigateway
bind testport only to localhost
Issue-ID: SDNC-819
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I67bda6e44cb5eedc97bdfc22c398f29026b3b7b7
Diffstat (limited to 'sdnr/wt/apigateway/provider')
-rw-r--r-- | sdnr/wt/apigateway/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/apigateway/test/helper/HelpServletBase.java | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |