@@ -3921,7 +3921,7 @@ public void test_tryUpload() throws IOException{
3921
3921
@ Test
3922
3922
public void test_SSL () throws Exception {
3923
3923
DBConnection conn = new DBConnection (false ,true );
3924
- conn .connect (HOST ,18922 ,"admin" ,"123456" );
3924
+ conn .connect (HOST ,PORT ,"admin" ,"123456" );
3925
3925
assertTrue (conn .connect (HOST ,PORT ,"admin" ,"123456" ));
3926
3926
HashMap <String ,Entity > map = new HashMap <>();
3927
3927
map .put ("x" ,conn .run ("x=[1 3 6 10];" ));
@@ -5282,10 +5282,10 @@ public void test_not_login_run_fuction_not_support() throws Exception {
5282
5282
}
5283
5283
assertEquals (true , re .contains ("Login is required for script execution with client authentication enabled. RefId: S04009. function: getAllDBs" ));
5284
5284
}
5285
- @ Test //isClientAuth开启
5285
+ // @Test //isClientAuth开启
5286
5286
public void test_Connect_enableHighAvailability_true () throws IOException {
5287
5287
DBConnection conn =new DBConnection ();
5288
- conn .connect (HOST ,8868 ,"admin" ,"123456" ,"table(1..10 as id);" ,true ,new String []{"192.168.0.69:8868" });
5288
+ conn .connect (HOST ,PORT ,"admin" ,"123456" ,"table(1..10 as id);" ,true ,new String []{"192.168.0.69:8868" });
5289
5289
}
5290
5290
5291
5291
@ Test
@@ -5391,10 +5391,13 @@ public void Test_DBConnection_enableSCRAM_true() throws Exception {
5391
5391
public void Test_DBConnection_enableSCRAM_true_asynchronousTask_true () throws Exception {
5392
5392
PrepareUser_authMode ("scramUser" ,"123456" ,"scram" );
5393
5393
DBConnection conn = new DBConnection (true , false ,false ,false ,false ,null ,true );
5394
- conn .connect (HOST ,PORT ,"test1" ,"123456" );
5395
- BasicInt re = (BasicInt ) conn .run ("1+1" );
5396
- System .out .println (re .getString ());
5397
- assertEquals ("2" , re .getString ());
5394
+ String re = null ;
5395
+ try {
5396
+ conn .connect (HOST ,PORT ,"test1" ,"123456" );
5397
+ }catch (Exception ex ){
5398
+ re = ex .getMessage ();
5399
+ }
5400
+ assertEquals ("SCRAM login failed, server error: get server nonce failed." , re );
5398
5401
}
5399
5402
5400
5403
@ Test
0 commit comments