Skip to content

Commit

Permalink
Merge pull request wso2#17372 from thanujalk/master
Browse files Browse the repository at this point in the history
Update IdP Mgt Test case with SSO IdP as default
  • Loading branch information
dewniMW authored Oct 30, 2023
2 parents 2b885a4 + 31f48fc commit 1d17ba9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public void testGetAllPaginatedIdPsWithEmptyFilter() throws Exception {
List<IdentityProvider> 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 " +
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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 ");
}
}
Expand Down

0 comments on commit 1d17ba9

Please sign in to comment.