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

Update tests to support multi-channel support for the username recovery & bump the governance version #21707

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 @@ -53,6 +53,8 @@ public class PreferenceAPIIntegrationUITestCase extends OAuth2ServiceAbstractInt

private static final String ENABLE_SELF_REGISTRATION_PROP_KEY = "SelfRegistration.Enable";
private static final String ENABLE_USERNAME_RECOVERY_PROP_KEY = "Recovery.Notification.Username.Enable";
private static final String ENABLE_USERNAME_EMAIL_RECOVERY_PROP_KEY = "Recovery.Notification.Username.Email.Enable";
private static final String ENABLE_USERNAME_SMS_RECOVERY_PROP_KEY = "Recovery.Notification.Username.SMS.Enable";
private static final String ENABLE_PASSWORD_QS_RECOVERY_PROP_KEY = "Recovery.Question.Password.Enable";
private static final String ENABLE_PASSWORD_NOTIFICATION_RECOVERY_PROP_KEY =
"Recovery.Notification.Password.Enable";
Expand Down Expand Up @@ -129,6 +131,8 @@ public void resetResidentIDP() throws Exception {
updateResidentIDPProperties(superTenantResidentIDP, Map.of(
ENABLE_SELF_REGISTRATION_PROP_KEY, "false",
ENABLE_USERNAME_RECOVERY_PROP_KEY, "false",
ENABLE_USERNAME_EMAIL_RECOVERY_PROP_KEY, "false",
ENABLE_USERNAME_SMS_RECOVERY_PROP_KEY, "false",
ENABLE_PASSWORD_QS_RECOVERY_PROP_KEY, "false",
ENABLE_PASSWORD_NOTIFICATION_RECOVERY_PROP_KEY, "false",
ENABLE_PASSWORD_EMAIL_LINK_RECOVERY_PROP_KEY, "false",
Expand All @@ -155,7 +159,10 @@ public void testSelfRegistration() throws Exception {
@Test(groups = "wso2.is", description = "Check Username recovery Login Page")
public void testUsernameRecovery() throws Exception {

updateResidentIDPProperty(superTenantResidentIDP, ENABLE_USERNAME_RECOVERY_PROP_KEY, "true");
updateResidentIDPProperties(superTenantResidentIDP, Map.of(
ENABLE_USERNAME_EMAIL_RECOVERY_PROP_KEY, "true",
ENABLE_USERNAME_RECOVERY_PROP_KEY, "true"
));
String content = sendAuthorizeRequest();
Assert.assertTrue(content.contains(RECOVERY_USERNAME_CONTENT));
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@
<carbon.consent.mgt.version>2.6.4</carbon.consent.mgt.version>

<!--Identity Governance Version-->
<identity.governance.version>1.11.14</identity.governance.version>
<identity.governance.version>1.11.15</identity.governance.version>

<!--Identity Carbon Versions-->
<identity.carbon.auth.saml2.version>5.9.5</identity.carbon.auth.saml2.version>
Expand Down