| | |
| | | import org.opends.server.protocols.internal.SearchRequest; |
| | | import org.opends.server.tasks.LdifFileWriter; |
| | | import org.opends.server.tasks.TasksTestCase; |
| | | import org.opends.server.tools.LDAPModify; |
| | | import org.opends.server.tools.LDAPSearch; |
| | | import com.forgerock.opendj.ldap.tools.LDAPModify; |
| | | import com.forgerock.opendj.ldap.tools.LDAPSearch; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | |
| | | "-w", "password", |
| | | "-f", subtreeDeletePath |
| | | }; |
| | | resultCode = LDAPModify.mainModify(args, false, System.out, System.err); |
| | | resultCode = LDAPModify.run(System.out, System.err, args); |
| | | assertEquals(resultCode, ResultCode.NOT_ALLOWED_ON_NONLEAF.intValue()); |
| | | |
| | | |
| | |
| | | "-J", "subtreeDelete", |
| | | "-f", subtreeDeletePath |
| | | }; |
| | | resultCode = LDAPModify.mainModify(args, false, System.out, System.err); |
| | | resultCode = LDAPModify.run(System.out, System.err, args); |
| | | assertEquals(resultCode, 0); |
| | | } |
| | | |
| | |
| | | "-J", "subtreeDelete", |
| | | "-f", path |
| | | }; |
| | | assertEquals(LDAPModify.mainModify(args, false, System.out, System.err), 0); |
| | | assertEquals(LDAPModify.run(System.out, System.err, args), 0); |
| | | assertFalse(DirectoryServer.entryExists(DN.valueOf("o=ldif"))); |
| | | assertFalse(DirectoryServer.entryExists( |
| | | DN.valueOf("uid=user.1,ou=People,o=ldif"))); |
| | |
| | | "(objectClass=*)" |
| | | }; |
| | | |
| | | assertEquals(LDAPSearch.mainSearch(args, false, System.out, System.err), 0); |
| | | assertEquals(LDAPSearch.run(System.out, System.err, args), 0); |
| | | } |
| | | |
| | | |
| | |
| | | "-w", "password", |
| | | "-f", path |
| | | }; |
| | | assertEquals(LDAPModify.mainModify(args, false, System.out, System.err), 0); |
| | | assertEquals(LDAPModify.run(System.out, System.err, args), 0); |
| | | } |
| | | |
| | | |