diff --git a/server/src/test/java/it/JobIT.java b/server/src/test/java/it/JobIT.java index a16f4e8..2581621 100644 --- a/server/src/test/java/it/JobIT.java +++ b/server/src/test/java/it/JobIT.java @@ -49,7 +49,7 @@ class JobIT { void testCreate() throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest - .newBuilder(new URI("http://localhost:8080/rest/job")) + .newBuilder(new URI("http://localhost:8080/sphynx/job")) .header("Content-Type", "application/json") .PUT(BodyPublishers.ofString("{}")) .build(); @@ -62,7 +62,7 @@ void testCreate() throws Exception { void testList() throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest - .newBuilder(new URI("http://localhost:8080/rest/job")) + .newBuilder(new URI("http://localhost:8080/sphynx/job")) .build(); HttpResponse response = client.send(request, BodyHandlers.ofString()); System.out.println(response.body()); @@ -73,7 +73,7 @@ void testList() throws Exception { void testExecute() throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest - .newBuilder(new URI("http://localhost:8080/rest/job/test/execute")) + .newBuilder(new URI("http://localhost:8080/sphynx/job/test/execute")) .POST(BodyPublishers.noBody()) .build(); HttpResponse response = client.send(request, BodyHandlers.ofString()); diff --git a/server/src/test/java/it/LogIT.java b/server/src/test/java/it/LogIT.java index 234b693..375e3fd 100644 --- a/server/src/test/java/it/LogIT.java +++ b/server/src/test/java/it/LogIT.java @@ -49,7 +49,7 @@ class LogIT { void testGet() throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest - .newBuilder(new URI("http://localhost:8080/rest/job/test/log/1234")) + .newBuilder(new URI("http://localhost:8080/sphynx/job/test/log/1234")) .build(); HttpResponse response = client.send(request, BodyHandlers.ofString()); assertEquals(404, response.statusCode()); @@ -59,7 +59,7 @@ void testGet() throws Exception { void testList() throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest - .newBuilder(new URI("http://localhost:8080/rest/job/test/log")) + .newBuilder(new URI("http://localhost:8080/sphynx/job/test/log")) .build(); HttpResponse response = client.send(request, BodyHandlers.ofString()); System.out.println(response.body());