Skip to content

Commit

Permalink
[apache#768] change api path
Browse files Browse the repository at this point in the history
  • Loading branch information
beryllw committed Jun 18, 2023
1 parent 3890d23 commit f618afa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/main/java/org/apache/uniffle/api/AdminRestApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public AdminRestApi(UniffleRestClient client) {

public String refreshAccessChecker() {
Map<String, Object> params = new HashMap<>();
return this.getClient().get("/api/server/admin/refreshChecker", params, null);
return this.getClient().get("/api/admin/refreshChecker", params, null);
}

private RestClient getClient() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testRunRefreshAccessChecker() throws UniffleCliArgsException {
.thenReturn("OK");
String result = adminRestApi.refreshAccessChecker();
Mockito.verify(uniffleRestClient.getHttpClient(),
Mockito.times(1)).get("/api/server/admin/refreshChecker",
Mockito.times(1)).get("/api/admin/refreshChecker",
new HashMap<>(), null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testAdminRefreshCLI() throws UniffleCliArgsException, IOException {
String[] args = {"-r"};
assertEquals(0, uniffleAdminCLI.run(args));
Mockito.verify(client.getHttpClient(),
Mockito.times(1)).get("/api/server/admin/refreshChecker",
Mockito.times(1)).get("/api/admin/refreshChecker",
new HashMap<>(), null);
}

Expand Down

0 comments on commit f618afa

Please sign in to comment.