andrewgaul 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);
This is not necessary since the `assertThat` call below also checks length.
--
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#pullrequestreview-53940228