Skip to content

Conversation

cfkoehler
Copy link
Collaborator

No description provided.

@@ -314,7 +314,7 @@ void healthcheck() {
when(registry.runHealthChecks()).thenReturn(results);

Namespace.bind("MetricsManager", manager);
try (Response response = health.clusterAgents()) {
try (Response response = health.generateJsonResponse(results)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the intent of the test. Need to revert and correct the test

}
} catch (Exception e) {
logger.warn("Could not retrieve metrics", e);
return Response.serverError().entity("Could not retrieve metrics: " + e.getMessage()).build();

Check warning

Code scanning / CodeQL

Information exposure through an error message Medium

Error information
can be exposed to an external user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant