You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/04/02 06:12:19 UTC

[syncope] branch master updated: [SYNCOPE-1466] Further attempt to make PullTaskITCase#reconcileFromLDAP more stable

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new da8bd88  [SYNCOPE-1466] Further attempt to make PullTaskITCase#reconcileFromLDAP more stable
da8bd88 is described below

commit da8bd881b80a9b7523ae58e078d69f56a853832c
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Thu Apr 2 08:11:50 2020 +0200

    [SYNCOPE-1466] Further attempt to make PullTaskITCase#reconcileFromLDAP more stable
---
 .../src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
index a08e829..5be88ed 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
@@ -19,6 +19,7 @@
 package org.apache.syncope.fit.core;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertNull;
@@ -401,11 +402,9 @@ public class PullTaskITCase extends AbstractTaskITCase {
                 new AnyQuery.Builder().realm(SyncopeConstants.ROOT_REALM).
                         fiql(SyncopeClient.getUserSearchConditionBuilder().is("lastChangeContext").
                                 equalTo("*PullTask " + task.getKey() + "*").query()).
-                        orderBy(SyncopeClient.getOrderByClauseBuilder().desc("lastChangeDate").build()).
-                        page(1).size(100).
                         build());
         assertNotNull(matchByLastChangeContext);
-        assertTrue(matchByLastChangeContext.getResult().contains(matchingUsers.getResult().get(0)));
+        assertNotEquals(0, matchByLastChangeContext.getTotalCount());
 
         GroupTO groupTO = matchingGroups.getResult().get(0);
         assertNotNull(groupTO);