From 367abff14026980fcc9948dcb475f5beb3380218 Mon Sep 17 00:00:00 2001 From: Thisara-Welmilla Date: Thu, 16 Jan 2025 12:27:46 +0530 Subject: [PATCH] Update user defined authenticator name in integration tests. --- .../authenticator/management/v1/AuthenticatorFailureTest.java | 2 +- .../authenticator/management/v1/AuthenticatorTestBase.java | 2 +- .../test/rest/api/server/idp/v1/IdPFailureTest.java | 4 ++-- .../test/rest/api/server/idp/v1/IdPSuccessTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorFailureTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorFailureTest.java index 6feab80a297..de9f73691c2 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorFailureTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorFailureTest.java @@ -243,7 +243,7 @@ public void createUserDefinedLocalAuthenticatorWithExistingAuthenticatorName() t .body("code", equalTo("AUT-60013")) .body("message", equalTo("The authenticator already exists.")) .body("description", equalTo("The authenticator already exists for the given name:" + - " customAuthenticator.")); + " custom_Authenticator.")); } @Test(priority = 10) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorTestBase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorTestBase.java index 846eef15ead..b335da3dd1a 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorTestBase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/authenticator/management/v1/AuthenticatorTestBase.java @@ -47,7 +47,7 @@ public class AuthenticatorTestBase extends RESTAPIServerTestBase { protected static final String AUTHENTICATOR_CONFIG_API_BASE_PATH = "/api/server/v1/configs/authenticators/"; protected static final String PATH_SEPARATOR = "/"; - protected final String AUTHENTICATOR_NAME = "customAuthenticator"; + protected final String AUTHENTICATOR_NAME = "custom_Authenticator"; protected final String AUTHENTICATOR_DISPLAY_NAME = "ABC custom authenticator"; protected final String AUTHENTICATOR_ENDPOINT_URI = "https://test.com/authenticate"; protected final String customIdPId = Base64.getUrlEncoder().withoutPadding().encodeToString( diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPFailureTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPFailureTest.java index 56398a9e264..60fd930bcb8 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPFailureTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPFailureTest.java @@ -62,8 +62,8 @@ public class IdPFailureTest extends IdPTestBase { private static final String OIDC_SCOPES_PLACEHOLDER = "\"\""; private static final String AUTHENTICATOR_PROPERTIES_PLACEHOLDER = "\"\""; private static final String CUSTOM_IDP_NAME = "CustomAuthIDP"; - private static final String USER_DEFINED_AUTHENTICATOR_ID_1 = "Y3VzdG9tQXV0aGVudGljYXRvcjE="; - private static final String USER_DEFINED_AUTHENTICATOR_ID_2 = "Y3VzdG9tQXV0aGVudGljYXRvcg=="; + private static final String USER_DEFINED_AUTHENTICATOR_ID_1 = "Y3VzdG9tX0F1dGhlbnRpY2F0b3Ix"; + private static final String USER_DEFINED_AUTHENTICATOR_ID_2 = "Y3VzdG9tX0F1dGhlbnRpY2F0b3Iy"; private static final String SYSTEM_DEFINED_AUTHENTICATOR_ID = "R29vZ2xlT0lEQ0F1dGhlbnRpY2F0b3I"; private static final String ENDPOINT_URI = "https://abc.com/authenticate"; private String idPId; diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPSuccessTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPSuccessTest.java index 3b32c0d64d8..7edcd408fa6 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPSuccessTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/rest/api/server/idp/v1/IdPSuccessTest.java @@ -63,7 +63,7 @@ public class IdPSuccessTest extends IdPTestBase { private static final String METADATA_SAML_PLACEHOLDER = ""; private static final String OIDC_SCOPES_PLACEHOLDER = "\"\""; private static final String AUTHENTICATOR_PROPERTIES_PLACEHOLDER = "\"\""; - private static final String FEDERATED_AUTHENTICATOR_ID = "Y3VzdG9tQXV0aGVudGljYXRvcg"; + private static final String FEDERATED_AUTHENTICATOR_ID = "Y3VzdG9tX0F1dGhlbnRpY2F0b3Ix"; private static final String OIDC_AUTHENTICATOR_ID = "T3BlbklEQ29ubmVjdEF1dGhlbnRpY2F0b3I"; private static final String SAML_AUTHENTICATOR_ID = "U0FNTFNTT0F1dGhlbnRpY2F0b3I"; private static final String CUSTOM_IDP_NAME = "Custom Auth IDP";