mirror of https://github.com/apache/jclouds.git
Enable more filesystem integration tests
Other tests will require Java 7 xattr support.
This commit is contained in:
parent
dd3dc9790e
commit
370194b2be
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue