Skip to content

Commit 552dcb8

Browse files
committed
fix(server): fix the arthas default bind ip to 127.0.0.1
1 parent 7d75e0d commit 552dcb8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api/ArthasApiTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,9 @@ public void testArthasApi() {
4343
" \"command\": \"version\"\n" +
4444
"}";
4545
RestClient arthasApiClient = new RestClient(ARTHAS_API_BASE_URL, false);
46-
// If the request header contains basic auth,
47-
// and if we are not set auth when arthas attach hg, arthas will auth it and return 401.
48-
// ref:https://arthas.aliyun.com/en/doc/auth.html#configure-username-and-password
4946
Response r = arthasApiClient.post(ARTHAS_API_PATH, body);
5047
String result = assertResponseStatus(200, r);
5148
assertJsonContains(result, "state");
5249
assertJsonContains(result, "body");
53-
54-
RestClient arthasApiClientWithAuth = new RestClient(ARTHAS_API_BASE_URL);
55-
r = arthasApiClientWithAuth.post(ARTHAS_API_PATH, body);
56-
assertResponseStatus(401, r);
5750
}
5851
}

0 commit comments

Comments
 (0)