mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
29.51.2024 efb00ec73d7fede35184080a0c31f4aa8789e102
opendj-server-legacy/src/test/java/org/opends/server/extensions/Issue425TestCase.java
@@ -88,27 +88,25 @@
              "subtreeSpecification: {}",
              "cn: test-subentry"
      );
      //add OC subentry without DSR (warning level)
      TestCaseUtils.addEntry(
              "dn: o=test-subentry2,ou=Accounts,dc=example,dc=com",
              "objectClass: top",
              "objectClass: extensibleObject",
              "objectClass: subentry",
              "objectClass: collectiveAttributeSubentry",
              "subtreeSpecification: {}",
              "cn: test-subentry2"
      //Entry o=test-subentry2,ou=Accounts,dc=example,dc=com violates the Directory Server schema configuration because its RDN does not contain attribute cn that is required by name form subentryNameForm
      assertThrows(new ThrowingRunnable() {
                     @Override
                     public void run() throws Throwable {
                       TestCaseUtils.addEntry(
                               "dn: o=test-subentry2,ou=Accounts,dc=example,dc=com",
                               "objectClass: top",
                               "objectClass: extensibleObject",
                               "objectClass: subentry",
                               "objectClass: collectiveAttributeSubentry",
                               "subtreeSpecification: {}",
                               "cn: test-subentry2"
                       );
                     }
                   }
      );
      int resultCode = TestCaseUtils.applyModifications(true,
              "dn: cn=schema",
              "changetype: modify",
              "add: nameForms",
              "nameForms: ( 2.5.15.16\n"+
                      "          NAME 'subentryNameForm'\n"+
                      "          DESC 'X.501, cl. 14.2.2: the Subentry name form'\n"+
                      "          OC subentry\n"+
                      "          MUST cn )",
              "-",
              "add: ditStructureRules",
              "dITStructureRules: ( 177\n"+
                      "          NAME 'subentryStructure'\n"+