mirror of https://github.com/apache/jclouds.git
GCS delimiter test should not be special cased.
GCS delimiter implementation now works similarly to the other providers (fixed in a prior commit) and we do not need to special case the test.
This commit is contained in:
parent
2e1e109a0c
commit
06125793d2
|
@ -19,7 +19,6 @@ package org.jclouds.googlecloudstorage.blobstore.integration;
|
||||||
import static com.google.common.collect.Iterables.get;
|
import static com.google.common.collect.Iterables.get;
|
||||||
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.maxResults;
|
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.maxResults;
|
||||||
import static org.testng.Assert.assertEquals;
|
import static org.testng.Assert.assertEquals;
|
||||||
import static org.testng.Assert.assertNull;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -30,7 +29,6 @@ import org.jclouds.blobstore.domain.BlobMetadata;
|
||||||
import org.jclouds.blobstore.domain.PageSet;
|
import org.jclouds.blobstore.domain.PageSet;
|
||||||
import org.jclouds.blobstore.domain.StorageMetadata;
|
import org.jclouds.blobstore.domain.StorageMetadata;
|
||||||
import org.jclouds.blobstore.integration.internal.BaseContainerIntegrationTest;
|
import org.jclouds.blobstore.integration.internal.BaseContainerIntegrationTest;
|
||||||
import org.jclouds.blobstore.options.ListContainerOptions;
|
|
||||||
import org.jclouds.googlecloud.internal.TestProperties;
|
import org.jclouds.googlecloud.internal.TestProperties;
|
||||||
import org.testng.SkipException;
|
import org.testng.SkipException;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
@ -78,23 +76,6 @@ public class GoogleCloudStorageContainerIntegrationLiveTest extends BaseContaine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Google Cloud Storage lists prefixes and objects in two different lists */
|
|
||||||
@Override
|
|
||||||
public void testListRootUsesDelimiter() throws InterruptedException {
|
|
||||||
String containerName = getContainerName();
|
|
||||||
try {
|
|
||||||
String prefix = "rootdelimiter";
|
|
||||||
addTenObjectsUnderPrefix(containerName, prefix);
|
|
||||||
add15UnderRoot(containerName);
|
|
||||||
PageSet<? extends StorageMetadata> container = view.getBlobStore().list(containerName,
|
|
||||||
new ListContainerOptions());
|
|
||||||
assertNull(container.getNextMarker());
|
|
||||||
assertEquals(container.size(), 15);
|
|
||||||
} finally {
|
|
||||||
returnContainer(containerName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void testDirectory() throws InterruptedException {
|
public void testDirectory() throws InterruptedException {
|
||||||
// TODO: testDirectory fails when querying blob with name "directory/directory"; querying "directory%2Fdirectory"
|
// TODO: testDirectory fails when querying blob with name "directory/directory"; querying "directory%2Fdirectory"
|
||||||
|
|
Loading…
Reference in New Issue