From 027513c5068d0832d9008e0067a921cbf73f043d Mon Sep 17 00:00:00 2001 From: Kumuditha - KD Date: Mon, 6 Jan 2025 08:30:24 +0530 Subject: [PATCH] Update testInitialSelfSignUpPage() --- .../integration/test/consent/SelfSignUpConsentTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/consent/SelfSignUpConsentTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/consent/SelfSignUpConsentTest.java index f818e0aef80..0a1ee7df347 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/consent/SelfSignUpConsentTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/consent/SelfSignUpConsentTest.java @@ -66,7 +66,6 @@ public class SelfSignUpConsentTest extends ISIntegrationTest { public static final String CONSNT_ENDPOINT_SUFFIX = "/api/identity/consent-mgt/v1.0/consents"; public static final String USER_RECOVERY_ME_ENDPOINT = "/api/identity/user/v1.0/me"; private static final String CALLBACK_ENDPOINT = "https://localhost:9853/carbon/callback"; - private static final String TENANTED_CALLBACK_ENDPOINT = "https://localhost:9853/t/wso2.com/carbon/callback"; private static final String COUNTRY_WSO2_CLAIM = "http://wso2.org/claims/country"; private static final String CALLBACK_QUERY_PARAM = "callback"; private static final String USERNAME_QUERY_PARAM = "username"; @@ -148,7 +147,8 @@ public void testInitialSelfSignUpPage() throws IOException { Assert.assertNotNull(content); Assert.assertTrue(content.contains("Enter your username"), "Page for entering username is not prompted while" + " self registering"); - Assert.assertTrue(content.contains(TENANTED_CALLBACK_ENDPOINT), "Callback endpoint is not available in self " + + Assert.assertTrue(content.contains(getTenantQualifiedURL(CALLBACK_ENDPOINT, secondaryTenantDomain)), + "Callback endpoint is not available in self " + "registration username input page."); }