Skip to content

Commit

Permalink
Fixes #400 - Create test to view a log using REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Oct 31, 2024
1 parent 40360f1 commit aab817b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/test/java/it/LogIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
class LogIT {

@Test
void testGet() throws Exception {
void testGetNonExistingLog() throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest
.newBuilder(new URI("http://localhost:8080/sphynx/job/test/log/1234"))
.build();
HttpResponse<String> response = client.send(request, BodyHandlers.ofString());
assertEquals(404, response.statusCode());
}

@Test
void testList() throws Exception {
void testListAvailableLogs() throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest
.newBuilder(new URI("http://localhost:8080/sphynx/job/test/log"))
Expand Down

0 comments on commit aab817b

Please sign in to comment.