Skip to content

Commit

Permalink
Revert "[ELY-2557] Add an afterclass method to do clean-up after the …
Browse files Browse the repository at this point in the history
…FileSystemEncryptRealmCommandTest testBulkWithoutNames test"

This reverts commit 3d2f36b.
  • Loading branch information
darranl committed Sep 17, 2024
1 parent 6364aa5 commit 405943d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@

import java.io.File;
import java.io.FileNotFoundException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;

import javax.crypto.SecretKey;

import org.apache.commons.cli.MissingArgumentException;
import org.junit.AfterClass;
import org.junit.Test;
import org.wildfly.security.auth.principal.NamePrincipal;
import org.wildfly.security.auth.realm.FileSystemSecurityRealm;
Expand Down Expand Up @@ -283,18 +279,6 @@ public void testSingleUserAndVerify() throws Exception {
existingIdentity.dispose();
}

@AfterClass
public static void cleanup() throws Exception {
//cleanup after testBulkWithoutNames test
Path bulkWithoutNamesFolderPath = Paths.get(RELATIVE_BASE_DIR + "fs-encrypted-realms/bulk-encryption-conversion-desc-without-names");
if (bulkWithoutNamesFolderPath.toFile().exists()) {
Files.walk(bulkWithoutNamesFolderPath)
.sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
}
}

private boolean fileExists(String path) {
File tempFile = new File(path);
return tempFile.exists();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
input-location:target/test-classes/filesystem-encrypt/fs-unencrypted-realms/multiple-credential-types
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms/bulk-encryption-conversion-desc-without-names
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms
credential-store:target/test-classes/filesystem-encrypt/mycredstore.cs
create:true
levels:1

input-location:target/test-classes/filesystem-encrypt/fs-unencrypted-realms/level-4
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms/bulk-encryption-conversion-desc-without-names
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms
credential-store:target/test-classes/filesystem-encrypt/mycredstore.cs
create:true
levels:4

input-location:target/test-classes/filesystem-encrypt/fs-unencrypted-realms/fsRealmCharset
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms/bulk-encryption-conversion-desc-without-names
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms
credential-store:target/test-classes/filesystem-encrypt/mycredstore.cs
create:true

input-location:target/test-classes/filesystem-encrypt/fs-unencrypted-realms/hashencoding
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms/bulk-encryption-conversion-desc-without-names
output-location:target/test-classes/filesystem-encrypt/fs-encrypted-realms
hash-encoding:hex
credential-store:target/test-classes/filesystem-encrypt/mycredstore.cs
create:true
create:true

0 comments on commit 405943d

Please sign in to comment.