Skip to content

Commit

Permalink
add error msg (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgreenbird authored Dec 22, 2023
1 parent 6c27ec8 commit 5db7465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ public void testADPasswordWrongPasswordWithConnectionStringUserName() throws SQL
+ " in Active Directory (Authentication=ActiveDirectoryPassword).")
&& e.getCause().getCause().getMessage().toLowerCase().contains("invalid username or password")
|| e.getCause().getCause().getMessage().contains(ERR_MSG_SIGNIN_TOO_MANY)
|| e.getCause().getCause().getMessage().contains(ERR_FAULT_ID3342)
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED));
}
}
Expand All @@ -422,6 +423,7 @@ public void testADPasswordWrongPasswordWithDatasource() throws SQLException {
+ " in Active Directory (Authentication=ActiveDirectoryPassword).")
&& e.getCause().getCause().getMessage().toLowerCase().contains("invalid username or password")
|| e.getCause().getCause().getMessage().contains(ERR_MSG_SIGNIN_TOO_MANY)
|| e.getCause().getCause().getMessage().contains(ERR_FAULT_ID3342)
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED));
}
}
Expand All @@ -442,6 +444,7 @@ public void testADPasswordWrongPasswordWithConnectionStringUser() throws SQLExce
+ " in Active Directory (Authentication=ActiveDirectoryPassword).")
&& e.getCause().getCause().getMessage().toLowerCase().contains("invalid username or password")
|| e.getCause().getCause().getMessage().contains(ERR_MSG_SIGNIN_TOO_MANY)
|| e.getCause().getCause().getMessage().contains(ERR_FAULT_ID3342)
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public class FedauthCommon extends AbstractTest {
static final String ERR_MSG_HAS_CLOSED = TestResource.getResource("R_hasClosed");
static final String ERR_MSG_HAS_BEEN_CLOSED = TestResource.getResource("R_hasBeenClosed");
static final String ERR_MSG_SIGNIN_TOO_MANY = TestResource.getResource("R_signinTooManyTimes");
static final String ERR_FAULT_ID3342 = "FaultMessage: ID3242";
static final String ERR_MSG_NOT_AUTH_AND_IS = TestUtils.R_BUNDLE
.getString("R_SetAuthenticationWhenIntegratedSecurityTrue");
static final String ERR_MSG_NOT_AUTH_AND_USER_PASSWORD = TestUtils.R_BUNDLE
Expand Down

0 comments on commit 5db7465

Please sign in to comment.