Skip to content

Commit

Permalink
Updated fedauth error tests (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc authored Nov 13, 2024
1 parent b27b0c1 commit ef6b770
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ public void testADPasswordWrongPasswordWithConnectionStringUserName() throws SQL
&& 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));
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED)
|| e.getMessage().contains(ERR_FAULT_AUTH_FAIL));
}
}

Expand All @@ -424,7 +425,8 @@ public void testADPasswordWrongPasswordWithDatasource() throws SQLException {
&& 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));
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED)
|| e.getMessage().contains(ERR_FAULT_AUTH_FAIL));
}
}

Expand All @@ -445,7 +447,8 @@ public void testADPasswordWrongPasswordWithConnectionStringUser() throws SQLExce
&& 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));
|| e.getMessage().contains(ERR_MSG_REQUEST_THROTTLED)
|| e.getMessage().contains(ERR_FAULT_AUTH_FAIL));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public class FedauthCommon extends AbstractTest {
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_FAULT_AUTH_FAIL = "FaultMessage: Authentication Failure";
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 ef6b770

Please sign in to comment.