From 31f48fcd43d74abec20fd653788cf185481ddd4a Mon Sep 17 00:00:00 2001 From: Thanuja Date: Mon, 30 Oct 2023 09:35:33 +0530 Subject: [PATCH] Update IdP Mgt Test case with SSO IdP as default --- .../test/idp/mgt/IdentityProviderMgtServiceTestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/idp/mgt/IdentityProviderMgtServiceTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/idp/mgt/IdentityProviderMgtServiceTestCase.java index fd106d5b634..d45e0e5e793 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/idp/mgt/IdentityProviderMgtServiceTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/idp/mgt/IdentityProviderMgtServiceTestCase.java @@ -443,7 +443,7 @@ public void testGetAllPaginatedIdPsWithEmptyFilter() throws Exception { List idpList = idpMgtServiceClient.getPaginatedIdPsInfo(filter, pageNumber); Assert.assertNotNull(idpList); if (idpList.size() > 0) { - Assert.assertEquals(idpList.size(), 2, "filtered identity provider size not matched" + + Assert.assertEquals(idpList.size(), 3, "filtered identity provider size not matched" + " with the expected while testing getPaginatedIdPsInfo() with empty filter"); } else { Assert.fail("Unable to find filtered identity provider while testing getPaginatedIdPsInfo(). Paginated " + @@ -495,7 +495,7 @@ public void testGetPaginatedIdPsInfoWithIncorrectPageNumber() throws Exception { public void testGetAllIdPsCount() throws Exception { int idpCount = idpMgtServiceClient.getAllIdpCount(); - Assert.assertEquals(idpCount, 2, "Total idp count did not match with the expected."); + Assert.assertEquals(idpCount, 3, "Total idp count did not match with the expected."); } @Test(priority = 13, groups = "wso2.is", description = "test getFilteredIdpCount operation with incorrect filter") @@ -528,7 +528,7 @@ public void testGetFilteredIdpCountWithEmptyFilterValue() throws Exception { String filter = ""; int idpCount = idpMgtServiceClient.getFilteredIdpCount(filter); - if (idpCount != 2) { + if (idpCount != 3) { Assert.fail("Invalid Idp count found while calling getFilteredIdpCount() with empty filter value "); } }