Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated fedauth error tests #2538

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading