File tree 2 files changed +4
-0
lines changed
src/test/java/com/microsoft/sqlserver/jdbc/fedauth
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ public void testADPasswordWrongPasswordWithConnectionStringUserName() throws SQL
396
396
+ " in Active Directory (Authentication=ActiveDirectoryPassword)." )
397
397
&& e .getCause ().getCause ().getMessage ().toLowerCase ().contains ("invalid username or password" )
398
398
|| e .getCause ().getCause ().getMessage ().contains (ERR_MSG_SIGNIN_TOO_MANY )
399
+ || e .getCause ().getCause ().getMessage ().contains (ERR_FAULT_ID3342 )
399
400
|| e .getMessage ().contains (ERR_MSG_REQUEST_THROTTLED ));
400
401
}
401
402
}
@@ -422,6 +423,7 @@ public void testADPasswordWrongPasswordWithDatasource() throws SQLException {
422
423
+ " in Active Directory (Authentication=ActiveDirectoryPassword)." )
423
424
&& e .getCause ().getCause ().getMessage ().toLowerCase ().contains ("invalid username or password" )
424
425
|| e .getCause ().getCause ().getMessage ().contains (ERR_MSG_SIGNIN_TOO_MANY )
426
+ || e .getCause ().getCause ().getMessage ().contains (ERR_FAULT_ID3342 )
425
427
|| e .getMessage ().contains (ERR_MSG_REQUEST_THROTTLED ));
426
428
}
427
429
}
@@ -442,6 +444,7 @@ public void testADPasswordWrongPasswordWithConnectionStringUser() throws SQLExce
442
444
+ " in Active Directory (Authentication=ActiveDirectoryPassword)." )
443
445
&& e .getCause ().getCause ().getMessage ().toLowerCase ().contains ("invalid username or password" )
444
446
|| e .getCause ().getCause ().getMessage ().contains (ERR_MSG_SIGNIN_TOO_MANY )
447
+ || e .getCause ().getCause ().getMessage ().contains (ERR_FAULT_ID3342 )
445
448
|| e .getMessage ().contains (ERR_MSG_REQUEST_THROTTLED ));
446
449
}
447
450
}
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ public class FedauthCommon extends AbstractTest {
127
127
static final String ERR_MSG_HAS_CLOSED = TestResource .getResource ("R_hasClosed" );
128
128
static final String ERR_MSG_HAS_BEEN_CLOSED = TestResource .getResource ("R_hasBeenClosed" );
129
129
static final String ERR_MSG_SIGNIN_TOO_MANY = TestResource .getResource ("R_signinTooManyTimes" );
130
+ static final String ERR_FAULT_ID3342 = "FaultMessage: ID3242" ;
130
131
static final String ERR_MSG_NOT_AUTH_AND_IS = TestUtils .R_BUNDLE
131
132
.getString ("R_SetAuthenticationWhenIntegratedSecurityTrue" );
132
133
static final String ERR_MSG_NOT_AUTH_AND_USER_PASSWORD = TestUtils .R_BUNDLE
You can’t perform that action at this time.
0 commit comments