directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r569745 - in /directory/shared/trunk/convert/src/test: java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema
Date Sat, 25 Aug 2007 23:44:53 GMT
Author: elecharny
Date: Sat Aug 25 16:44:53 2007
New Revision: 569745

URL: http://svn.apache.org/viewvc?rev=569745&view=rev
Log:
Added a test to check that DIRSERVER-911 is not a bug on, the server side. My guess is that
the Studio is using an old version of shared-converter

Added:
    directory/shared/trunk/convert/src/test/resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema
Modified:
    directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java

Modified: directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java?rev=569745&r1=569744&r2=569745&view=diff
==============================================================================
--- directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
(original)
+++ directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
Sat Aug 25 16:44:53 2007
@@ -747,4 +747,25 @@
 
         assertEquals( expected, transform( "testATUsageDsaOp" ) );
     }
+
+    public void testConvertMozillaATWithOidLen() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-oid=1.3.6.1.4.1.13769.3.2, ou=attributeTypes, cn=testMozillaATWithOidLen,
\n" +
+            " ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.13769.3.2\n" +
+            "m-name: mozillaHomeStreet2\n" +
+            "m-equality: caseIgnoreMatch\n" +
+            "m-substr: caseIgnoreSubstringsMatch\n" +
+            "m-syntax: 1.3.6.1.4.1.1466.115.121.1.15\n" +
+            "m-length: 128\n" +
+            "m-singleValue: TRUE\n\n";
+
+        assertEquals( expected, transform( "testMozillaATWithOidLen" ) );
+    }
+
 }

Added: directory/shared/trunk/convert/src/test/resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema
URL: http://svn.apache.org/viewvc/directory/shared/trunk/convert/src/test/resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema?rev=569745&view=auto
==============================================================================
--- directory/shared/trunk/convert/src/test/resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema
(added)
+++ directory/shared/trunk/convert/src/test/resources/org/apache/directory/shared/converter/schema/testMozillaATWithOidLen.schema
Sat Aug 25 16:44:53 2007
@@ -0,0 +1,4 @@
+attributetype ( 1.3.6.1.4.1.13769.3.2 NAME 'mozillaHomeStreet2'
+         EQUALITY caseIgnoreMatch
+         SUBSTR caseIgnoreSubstringsMatch
+         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
\ No newline at end of file



Mime
View raw message