Skip to content

Commit

Permalink
Add a test whether metrics work or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed May 28, 2021
1 parent ae4e92d commit 480d436
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/ac/simons/biking2/config/EndpointConfigIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ void someEndpointsShouldBeAccessible() {
final ResponseEntity<Map> metrics = template.getForEntity("/api/system/metrics", Map.class);
assertEquals(HttpStatus.OK, metrics.getStatusCode());
}

@Test
void jvmMetricsShouldBeThere() {
final ResponseEntity<Map> metrics = template.getForEntity("/api/system/metrics/jvm.memory.max", Map.class);
assertEquals(HttpStatus.OK, metrics.getStatusCode());
}

@Test
void notAllEnvsShouldBeShown() {
Expand Down

0 comments on commit 480d436

Please sign in to comment.