Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgreffier committed Aug 4, 2024
1 parent c386b89 commit cabd64a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ private Object getResponseForStoreEndpoints(HttpExchange exchange) {
return interactiveQueriesService.getStateStores();
}

String store = parsePathParam(exchange, 3);
String store;
if (exchange.getRequestURI().toString().matches("/" + DEFAULT_STORE_PATH + "/metadata/.*")) {
store = parsePathParam(exchange, 3);
return interactiveQueriesService.getStreamsMetadataForStore(store)
.stream()
.map(streamsMetadata -> new StreamsMetadata(
Expand All @@ -156,6 +157,7 @@ private Object getResponseForStoreEndpoints(HttpExchange exchange) {
}

if (exchange.getRequestURI().toString().matches("/" + DEFAULT_STORE_PATH + "/local/.*")) {
store = parsePathParam(exchange, 3);
return interactiveQueriesService.getAllOnLocalhost(store);
}

Expand Down

0 comments on commit cabd64a

Please sign in to comment.