Skip to content

Commit

Permalink
EPMRPP-87593 fix CVEs
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Nov 20, 2023
1 parent d171efd commit e91613d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ void indexProjectData() throws Exception {
arguments.put("analyzer_index", true);
arguments.put("analyzer", "test_analyzer");
exchangeInfo.setArguments(arguments);
when(rabbitClient.getExchanges(any())).thenReturn(Collections.singletonList(exchangeInfo));
when(rabbitClient.getExchanges(any(String.class))).thenReturn(Collections.singletonList(exchangeInfo));

mockMvc.perform(put("/v1/project/default_personal/index").with(token(oAuthHelper.getDefaultToken()))).andExpect(status().isOk());

Expand All @@ -547,7 +547,7 @@ void deleteIndex() throws Exception {
arguments.put("analyzer_index", true);
arguments.put("analyzer", "test_analyzer");
exchangeInfo.setArguments(arguments);
when(rabbitClient.getExchanges(any())).thenReturn(Collections.singletonList(exchangeInfo));
when(rabbitClient.getExchanges(any(String.class))).thenReturn(Collections.singletonList(exchangeInfo));

mockMvc.perform(delete("/v1/project/default_personal/index").with(token(oAuthHelper.getDefaultToken()))).andExpect(status().isOk());

Expand All @@ -566,4 +566,4 @@ private void verifyProjectIndexEvent() {
assertEquals(2L, event.getUserId().longValue());
assertEquals("default", event.getUserLogin());
}
}
}

0 comments on commit e91613d

Please sign in to comment.