timuralp commented on this pull request.


> +   /** Test that listing with an empty string for prefix and delimiter 
> returns all of the keys. */
+   @Test(groups = {"integration", "live"})
+   public void testListEmptyPrefixDelimiter() throws Exception {
+      final String container = getContainerName();
+      BlobStore blobStore = view.getBlobStore();
+
+      try {
+         blobStore.createContainerInLocation(null, container);
+         ImmutableList<String> blobs = ImmutableList.of("a", "b", "c");
+         for (String blob : blobs) {
+            blobStore.putBlob(container, 
blobStore.blobBuilder(blob).payload("").build());
+         }
+         ListContainerOptions options = 
ListContainerOptions.Builder.delimiter("")
+                 .prefix("").afterMarker("");
+         PageSet<? extends StorageMetadata> rs = blobStore.list(container, 
options);
+         assertEquals(rs.size(), 3);

Done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1121#discussion_r131264676

Reply via email to