Skip to content

Commit

Permalink
Fix test broken by changed password-reset token URL
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaceccanti committed Sep 30, 2016
1 parent b9328e5 commit 6f9eab4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.subethamail.wiser.WiserMessage;

import it.infn.mw.iam.IamLoginService;
import it.infn.mw.iam.api.account.PasswordResetController;
import it.infn.mw.iam.core.IamDeliveryStatus;
import it.infn.mw.iam.notification.MockTimeProvider;
import it.infn.mw.iam.notification.NotificationProperties;
Expand Down Expand Up @@ -344,7 +345,8 @@ public void testActivationMailShouldContainsResetPasswordLink()
RegistrationUtils.approveRequest(reg.getUuid());
String resetKey = generator.getLastToken();

String resetPasswordUrl = String.format("%s/iam/password-reset/%s", baseUrl, resetKey);
String resetPasswordUrl =
String.format("%s%s/%s", baseUrl, PasswordResetController.BASE_TOKEN_URL, resetKey);

notificationService.sendPendingNotifications();

Expand Down

0 comments on commit 6f9eab4

Please sign in to comment.