Skip to content

Commit

Permalink
fix(tests): removing unneeded test
Browse files Browse the repository at this point in the history
ref: #31415
  • Loading branch information
wezell committed Feb 19, 2025
1 parent 80290ae commit 001693f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ public HttpSession preventSessionFixation(final HttpServletRequest request) {
* @throws SystemException
* An error occurred during the user ID encryption.
*/
private void processJsonWebToken(final HttpServletRequest req,
private void createRememberMeCookie(final HttpServletRequest req,
final HttpServletResponse res,
final User user,
final int maxAge) throws PortalException, SystemException {

final String jwtAccessToken = this.jsonWebTokenUtils.createUserToken(user, Math.abs(maxAge));
createJsonWebTokenCookie(req, res, jwtAccessToken, Optional.of(maxAge));
final String rememberMeToken = this.jsonWebTokenUtils.createUserToken(user, Math.abs(maxAge));
createJsonWebTokenCookie(req, res, rememberMeToken, Optional.of(maxAge));
}


Expand Down Expand Up @@ -626,7 +626,7 @@ public void doRememberMe(final HttpServletRequest req,

try {

this.processJsonWebToken(req, res, user, maxAge);
this.createRememberMeCookie(req, res, user, maxAge);
} catch (Exception e) {

Logger.debug(this, e.getMessage(), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
com.liferay.portal.ejb.UserUtilTest.class,
com.liferay.util.LocaleUtilTest.class,
com.dotcms.languagevariable.business.LanguageVariableAPITest.class,
com.dotcms.filters.interceptor.jwt.JsonWebTokenInterceptorIntegrationTest.class,
com.dotcms.publishing.PublisherAPITest.class,
com.dotcms.publishing.remote.RemoteReceiverLanguageResolutionTest.class,
com.dotcms.cluster.business.ServerAPIImplTest.class,
Expand Down

This file was deleted.

0 comments on commit 001693f

Please sign in to comment.