syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject syncope git commit: Filter security.properties for the spring tests as well
Date Mon, 17 Jul 2017 18:17:13 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X cc34c98f6 -> d540e511d


Filter security.properties for the spring tests as well


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

Branch: refs/heads/2_0_X
Commit: d540e511d01fa4ef3d76df714a9a6e051efab8b0
Parents: cc34c98
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jul 17 19:15:53 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 17 19:17:08 2017 +0100

----------------------------------------------------------------------
 core/spring/pom.xml                                           | 7 +++++++
 .../apache/syncope/core/spring/security/EncryptorTest.java    | 7 +++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/d540e511/core/spring/pom.xml
----------------------------------------------------------------------
diff --git a/core/spring/pom.xml b/core/spring/pom.xml
index 4a9e395..5eacbd8 100644
--- a/core/spring/pom.xml
+++ b/core/spring/pom.xml
@@ -104,5 +104,12 @@ under the License.
         <artifactId>maven-checkstyle-plugin</artifactId>
       </plugin>
     </plugins>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+
   </build>
 </project>

http://git-wip-us.apache.org/repos/asf/syncope/blob/d540e511/core/spring/src/test/java/org/apache/syncope/core/spring/security/EncryptorTest.java
----------------------------------------------------------------------
diff --git a/core/spring/src/test/java/org/apache/syncope/core/spring/security/EncryptorTest.java
b/core/spring/src/test/java/org/apache/syncope/core/spring/security/EncryptorTest.java
index 4bfa0fa..98c3f16 100644
--- a/core/spring/src/test/java/org/apache/syncope/core/spring/security/EncryptorTest.java
+++ b/core/spring/src/test/java/org/apache/syncope/core/spring/security/EncryptorTest.java
@@ -20,6 +20,7 @@ package org.apache.syncope.core.spring.security;
 
 import org.apache.syncope.core.spring.security.Encryptor;
 
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
@@ -57,4 +58,10 @@ public class EncryptorTest {
             }
         }
     }
+
+    @Test
+    public void testDecodeDefaultAESKey() throws Exception {
+        String password = encryptor.decode("9Pav+xl+UyHt02H9ZBytiA==", CipherAlgorithm.AES);
+        assertEquals("password", password);
+    }
 }


Mime
View raw message