Repository: incubator-unomi
Updated Branches:
  refs/heads/master 1b701be99 -> 150010a28


Fix iTests


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/bf3ca3e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/bf3ca3e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/bf3ca3e1

Branch: refs/heads/master
Commit: bf3ca3e1c15ca0e819b8a9e798e77fa80b69d1aa
Parents: 1b701be
Author: Abdelkader Midani <[email protected]>
Authored: Tue Nov 7 18:16:51 2017 +0100
Committer: Abdelkader Midani <[email protected]>
Committed: Tue Nov 7 18:16:57 2017 +0100

----------------------------------------------------------------------
 .../org/apache/unomi/itests/ProfileImportRankingIT.java  | 11 -----------
 .../apache/unomi/itests/PropertiesUpdateActionIT.java    |  3 ++-
 2 files changed, 2 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/bf3ca3e1/itests/src/test/java/org/apache/unomi/itests/ProfileImportRankingIT.java
----------------------------------------------------------------------
diff --git 
a/itests/src/test/java/org/apache/unomi/itests/ProfileImportRankingIT.java 
b/itests/src/test/java/org/apache/unomi/itests/ProfileImportRankingIT.java
index afbb172..7e6a0db 100644
--- a/itests/src/test/java/org/apache/unomi/itests/ProfileImportRankingIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/ProfileImportRankingIT.java
@@ -140,19 +140,8 @@ public class ProfileImportRankingIT extends BaseIT {
     public void testImportRanking() throws InterruptedException {
 
         //Wait for data to be processed
-        //Check import config status
-        ImportConfiguration importConfiguration = 
importConfigurationService.load("5-ranking-test");
-        while (importConfiguration != null && 
!RouterConstants.CONFIG_STATUS_COMPLETE_SUCCESS.equals(importConfiguration.getStatus()))
 {
-            logger.info("$$$$ : testImportRanking : Waiting for data to be 
processed ...");
-            Thread.sleep(1000);
-            importConfiguration = 
importConfigurationService.load("5-ranking-test");
-        }
         Thread.sleep(10000);
 
-        Assert.assertEquals(1, importConfiguration.getExecutions().size());
-
-        //Assert.assertEquals(28, profileService.getAllProfilesCount());
-
         PartialList<Profile> gregProfile = 
profileService.findProfilesByPropertyValue("properties.uciId", "10004451371", 
0, 10, null);
         Assert.assertEquals(1, gregProfile.getList().size());
         Assert.assertNotNull(gregProfile.get(0));

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/bf3ca3e1/itests/src/test/java/org/apache/unomi/itests/PropertiesUpdateActionIT.java
----------------------------------------------------------------------
diff --git 
a/itests/src/test/java/org/apache/unomi/itests/PropertiesUpdateActionIT.java 
b/itests/src/test/java/org/apache/unomi/itests/PropertiesUpdateActionIT.java
index 6105b83..9007c95 100644
--- a/itests/src/test/java/org/apache/unomi/itests/PropertiesUpdateActionIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/PropertiesUpdateActionIT.java
@@ -103,12 +103,13 @@ public class PropertiesUpdateActionIT extends BaseIT {
 
         updateProperties.setProperty(UpdatePropertiesAction.PROPS_TO_UPDATE, 
propertyToUpdate);
         updateProperties.setProperty(UpdatePropertiesAction.TARGET_ID_KEY, 
PROFILE_TEST_ID);
+        updateProperties.setProperty(UpdatePropertiesAction.TARGET_TYPE_KEY, 
"profile");
         int changes = eventService.send(updateProperties);
 
         LOGGER.info("Changes of the event : {}", changes);
 
         profileToUpdate = profileService.load(PROFILE_TEST_ID);
-        Assert.assertEquals(profileToUpdate.getProperty("firstName"), "UPDATED 
FIRST NAME");
+        Assert.assertEquals("UPDATED FIRST NAME", 
profileToUpdate.getProperty("firstName"));
 
     }
 }

Reply via email to