Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #386 - Fix build #392

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions server/src/test/java/it/JobIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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<String> response = client.send(request, BodyHandlers.ofString());
System.out.println(response.body());
Expand All @@ -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<String> response = client.send(request, BodyHandlers.ofString());
Expand Down
4 changes: 2 additions & 2 deletions server/src/test/java/it/LogIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> response = client.send(request, BodyHandlers.ofString());
assertEquals(404, response.statusCode());
Expand All @@ -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<String> response = client.send(request, BodyHandlers.ofString());
System.out.println(response.body());
Expand Down
Loading