Enable more filesystem integration tests

Other tests will require Java 7 xattr support.
This commit is contained in:
Andrew Gaul 2014-07-16 16:23:20 -07:00
parent dd3dc9790e
commit 370194b2be
3 changed files with 10 additions and 21 deletions

View File

@ -121,14 +121,18 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
@Override
public void clearContainer(String container, ListContainerOptions options) {
filesystemContainerNameValidator.validate(container);
// TODO implement options
if (options.getDir() != null) {
container += denormalize("/" + options.getDir());
}
try {
File containerFile = openFolder(container);
File[] children = containerFile.listFiles();
if (null != children) {
for (File child : children)
if (options.isRecursive() || child.isFile()) {
Utils.deleteRecursively(child);
}
}
} catch (IOException e) {
logger.error(e, "An error occurred while clearing container %s", container);
Throwables.propagate(e);

View File

@ -60,21 +60,16 @@ public class FilesystemBlobIntegrationTest extends BaseBlobIntegrationTest {
@Override
public void testCreateBlobWithExpiry() throws InterruptedException {
throw new SkipException("not yet implemented");
throw new SkipException("requires Java 7 xattr support");
}
@Override
public void testGetIfModifiedSince() throws InterruptedException {
throw new SkipException("not yet implemented");
throw new SkipException("requires Java 7 xattr support");
}
@Override
public void testGetIfUnmodifiedSince() throws InterruptedException {
throw new SkipException("not yet implemented");
}
@Override
public void testPutObjectStream() throws InterruptedException, IOException, ExecutionException {
throw new SkipException("not yet implemented");
throw new SkipException("requires Java 7 xattr support");
}
}

View File

@ -82,19 +82,9 @@ public class FilesystemContainerIntegrationTest extends BaseContainerIntegration
}
}
@Override
public void testClearWhenContentsUnderPath() throws InterruptedException {
throw new SkipException("not yet implemented");
}
@Override
public void testDirectory() throws InterruptedException {
throw new SkipException("not yet implemented");
}
@Override
public void testWithDetails() throws InterruptedException, IOException {
throw new SkipException("not yet implemented");
throw new SkipException("requires Java 7 xattr support");
}
@Override