From 613b6bf045eb0ed040e1202c92bdb3644c1276c9 Mon Sep 17 00:00:00 2001 From: Timur Alperovich Date: Mon, 13 Jul 2015 16:07:54 -0700 Subject: [PATCH] Add a test that sets delimiter and prefix. Expands the delimiter tests to include a test that uses both prefix and delimiter. --- .../integration/internal/BaseContainerLiveTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerLiveTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerLiveTest.java index 995cdbdeeb..9a9c5e94b9 100644 --- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerLiveTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerLiveTest.java @@ -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); }