File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments