[jboss-cvs] JBossAS SVN: r87588 - in trunk/testsuite: src/resources/test-configs and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Apr 20 13:44:59 EDT 2009


Author: anil.saldhana at jboss.com
Date: 2009-04-20 13:44:59 -0400 (Mon, 20 Apr 2009)
New Revision: 87588

Added:
   trunk/testsuite/imports/config/tests-password-mask.xml
   trunk/testsuite/src/resources/test-configs/password-mask/
   trunk/testsuite/src/resources/test-configs/password-mask/conf/
   trunk/testsuite/src/resources/test-configs/password-mask/conf/password/
   trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_keystore_pass.dat
   trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_password_enc.dat
   trunk/testsuite/src/resources/test-configs/password-mask/conf/password/password.keystore
Log:
JBAS-6710: password masking in xml config

Added: trunk/testsuite/imports/config/tests-password-mask.xml
===================================================================
--- trunk/testsuite/imports/config/tests-password-mask.xml	                        (rev 0)
+++ trunk/testsuite/imports/config/tests-password-mask.xml	2009-04-20 17:44:59 UTC (rev 87588)
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+
+<!--
+   | Targets that run the Password Mask tests
+-->
+ 
+<!-- $Id: tests-clustering.xml 83440 2009-01-26 21:59:59Z pferraro $ -->
+<project name="main.server.config.password.mask" xmlns:server="http://jboss.org/ns/test/ant/server">
+
+  <!--
+  |  Define the Pattern Sets Here
+  --> 
+  <patternset id="password.mask.includes">
+    <include name="org/jboss/test/passwordinjection/test/Password*TestCase.class"/>
+  </patternset>
+
+  <!--
+    | Targets
+  -->
+
+   <target name="tests-password-mask"
+      description="Execute tests for password masking in xml configuration files">
+
+      <mkdir dir="${build.reports}"/>
+      <mkdir dir="${build.testlog}"/>
+
+      <!-- Create the Password Mask Config -->
+      <create-config baseconf="default" newconf="password-mask">
+        <patternset>
+           <include name="conf/**"/>
+           <include name="deployers/**"/>
+           <include name="deploy/**"/>
+           <include name="lib/**"/>
+        </patternset>
+      </create-config>
+
+      <server:start name="password-mask"/>
+      <property name="jbosstest.secure" value="true"/>
+      <property name="java.security.auth.login.config"
+                value="${build.resources}/security/auth.conf"/>
+
+      <propertyset id="password-tests-props">
+          <propertyref prefix="java.security.auth"/>
+          <propertyref prefix="jboss.security"/>
+      </propertyset>
+
+      <run-junit junit.patternset="password.mask.includes"
+                 junit.configuration="PASSWORD_MASK"
+                 junit.syspropertyset="password-tests-props" />
+
+      <server:stop name="password-mask"/>
+   </target>
+</project>

Added: trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_keystore_pass.dat
===================================================================
(Binary files differ)


Property changes on: trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_keystore_pass.dat
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_password_enc.dat
===================================================================
--- trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_password_enc.dat	                        (rev 0)
+++ trunk/testsuite/src/resources/test-configs/password-mask/conf/password/jboss_password_enc.dat	2009-04-20 17:44:59 UTC (rev 87588)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?><xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"/><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">bdywvYrvY25KbTMddS75TG6278YqG8rtQe/N37rSDRkC9Ek2ZFLXVM+QL649Ic7MEGuTZi2nfXQz
+hx7D28h+jz2F5Kd0Ds3hSJ9v6vEOExX3t7VgV3xG30hcv0LSeRKFp1Ic1x0cFZIZvnWFGPw0vKXl
+4IZaSDCM9U1dI354oAE=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">Lj8PdVIP0UaXVF4qA+/kwSu/OnGsDtUijoUFV6SoF8pDOsJ5+rBz2YsL98a2szj+PXqMV8yL3nPi
+W37VQql8OdC8XHLyfF5nDK4kQjpwgGlkooagkKFj4Axc/fNUEVS+</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData>
\ No newline at end of file

Added: trunk/testsuite/src/resources/test-configs/password-mask/conf/password/password.keystore
===================================================================
(Binary files differ)


Property changes on: trunk/testsuite/src/resources/test-configs/password-mask/conf/password/password.keystore
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jboss-cvs-commits mailing list