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 2016/06/15 06:35:44 UTC

[2/2] syncope git commit: [SYNCOPE-862] Adjusting one failing test

[SYNCOPE-862] Adjusting one failing test


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

Branch: refs/heads/master
Commit: bcc33d296a3504595285079a195e8fe01fbd98d0
Parents: 9706adc
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Wed Jun 15 08:35:30 2016 +0200
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Wed Jun 15 08:35:30 2016 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/syncope/fit/core/VirAttrITCase.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/bcc33d29/fit/core-reference/src/test/java/org/apache/syncope/fit/core/VirAttrITCase.java
----------------------------------------------------------------------
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/VirAttrITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/VirAttrITCase.java
index 37fc276..b6ae443 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/VirAttrITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/VirAttrITCase.java
@@ -451,9 +451,9 @@ public class VirAttrITCase extends AbstractITCase {
 
     @Test
     public void issueSYNCOPE453() {
-        String resourceName = "issueSYNCOPE453-Res-" + getUUIDString();
+        String resourceName = "issueSYNCOPE453Res" + getUUIDString();
         String groupKey = null;
-        String groupName = "issueSYNCOPE453-Group-" + getUUIDString();
+        String groupName = "issueSYNCOPE453Group" + getUUIDString();
 
         try {
             // -------------------------------------------
@@ -518,7 +518,7 @@ public class VirAttrITCase extends AbstractITCase {
 
             item = new MappingItemTO();
             item.setExtAttrName("EMAIL");
-            item.setIntAttrName("rvirtualdata");
+            item.setIntAttrName("groups[" + groupName + "].rvirtualdata");
             item.setPurpose(MappingPurpose.PROPAGATION);
             mapping.getItems().add(item);
 
@@ -565,6 +565,8 @@ public class VirAttrITCase extends AbstractITCase {
             assertEquals(userTO.getPlainAttrMap().get("fullname").getValues().get(0), actuals.get("id").toString());
             assertEquals("ml@group.it", actuals.get("email"));
             // -------------------------------------------
+        } catch(Exception e) {
+            LOG.error("Unexpected error", e);
         } finally {
             // -------------------------------------------
             // Delete resource and group ad-hoc