| | |
| | | TestCaseUtils.deleteDirectory(tempDir); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test(enabled=true) |
| | | public void testImportAll() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend(false, beID, null); |
| | |
| | | } |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportAll") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportAll") |
| | | public void testImportPartial() throws Exception |
| | | { |
| | | ArrayList<String> fileList = new ArrayList<String>(); |
| | |
| | | } |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportPartial") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportPartial") |
| | | public void testImportReplaceExisting() throws Exception |
| | | { |
| | | ByteArrayOutputStream rejectedEntries = new ByteArrayOutputStream(); |
| | |
| | | } |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportReplaceExisting") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportReplaceExisting") |
| | | public void testImportNoParent() throws Exception |
| | | { |
| | | ByteArrayOutputStream rejectedEntries = new ByteArrayOutputStream(); |
| | |
| | | assertTrue(rejectedEntries.toString().contains("uid=user.446,dc=importtest1,dc=com")); |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportReplaceExisting") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportReplaceExisting") |
| | | public void testImportAppend() throws Exception |
| | | { |
| | | LDIFImportConfig importConfig = new LDIFImportConfig(homeDirName + File.separator + "top.ldif"); |
| | |
| | | } |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportPartial") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportPartial") |
| | | public void testImportNotReplaceExisting() throws Exception |
| | | { |
| | | ByteArrayOutputStream rejectedEntries = new ByteArrayOutputStream(); |
| | |
| | | assertTrue(rejectedEntries.toString().contains("uid=user.446,dc=importtest1,dc=com")); |
| | | } |
| | | |
| | | //@Test(dependsOnMethods = "testImportPartial") |
| | | @Test(enabled=false) |
| | | @Test(dependsOnMethods = "testImportPartial") |
| | | public void testImportSkip() throws Exception |
| | | { |
| | | ArrayList<DN> excludeBranches = new ArrayList<DN>(); |
| | |
| | | assertTrue(skippedEntries.toString().contains("dc=skipped,dc=importtest1,dc=com")); |
| | | assertTrue(skippedEntries.toString().contains("uid=user.446,dc=skipped,dc=importtest1,dc=com")); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Builds an entry suitable for using in the verify job to gather statistics about |
| | | * the verify. |