mirror of https://github.com/apache/jclouds.git
Add a test that sets delimiter and prefix.
Expands the delimiter tests to include a test that uses both prefix and delimiter.
This commit is contained in:
parent
a472a878b0
commit
613b6bf045
|
@ -156,6 +156,11 @@ public class BaseContainerLiveTest extends BaseBlobStoreIntegrationTest {
|
|||
blobStore.list(containerName, ListContainerOptions.Builder.delimiter("\\")));
|
||||
checkEqualNames(ImmutableSet.of("test-", "test/foo/foo", "test/bar/foo", "foo"), blobStore.list(
|
||||
containerName, ListContainerOptions.Builder.delimiter("-")));
|
||||
|
||||
blobStore.putBlob(containerName, blobStore.blobBuilder("bar").payload(payload).build());
|
||||
blobStore.putBlob(containerName, blobStore.blobBuilder("bazar").payload(payload).build());
|
||||
checkEqualNames(ImmutableSet.of("bar", "baza"), blobStore.list(containerName,
|
||||
ListContainerOptions.Builder.delimiter("a").prefix("ba")));
|
||||
} finally {
|
||||
returnContainer(containerName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue