[ 
https://issues.apache.org/jira/browse/JCLOUDS-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15572560#comment-15572560
 ] 

ASF subversion and git services commented on JCLOUDS-945:
---------------------------------------------------------

Commit 160f00ef1f5cccd82f1e055d86f3842c27db62a7 in jclouds-labs-google's branch 
refs/heads/master from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs-google.git;h=160f00e ]

JCLOUDS-945: ignore marker prefix test on GCS


> ListContainerOption's marker support in LocalBlobStore buggy
> ------------------------------------------------------------
>
>                 Key: JCLOUDS-945
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-945
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>            Reporter: Ka-Hing Cheung
>            Assignee: Andrew Gaul
>              Labels: filesystem, transient
>             Fix For: 2.0.0
>
>
> adding this test fails
> {code}
> --- 
> a/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java
> +++ 
> b/blobstore/src/test/java/org/jclouds/blobstore/integration/TransientBlobIntegrationTest.java
> @@ -16,12 +16,34 @@
>   */
>  package org.jclouds.blobstore.integration;
>  
> +import org.jclouds.blobstore.BlobStore;
> +import org.jclouds.blobstore.domain.PageSet;
> +import org.jclouds.blobstore.domain.StorageMetadata;
>  import org.jclouds.blobstore.integration.internal.BaseBlobIntegrationTest;
> +import org.jclouds.blobstore.options.ListContainerOptions;
> +import org.jclouds.utils.TestUtils;
>  import org.testng.annotations.Test;
>  
> +import static org.assertj.core.api.Assertions.assertThat;
> +
>  @Test(groups = { "integration" })
>  public class TransientBlobIntegrationTest extends BaseBlobIntegrationTest {
>     public TransientBlobIntegrationTest() {
>        provider = "transient";
>     }
> +
> +   @Test
> +   public void testListMarker() throws Exception {
> +      BlobStore blobStore = view.getBlobStore();
> +      final String container = getContainerName();
> +      try {
> +         blobStore.createContainerInLocation(null, container);
> +         blobStore.putBlob(container, 
> blobStore.blobBuilder("a/b").payload("").build());
> +         ListContainerOptions options = new 
> ListContainerOptions().afterMarker("a/");
> +         PageSet<? extends StorageMetadata> res = blobStore.list(container, 
> options);
> +         assertThat(res).hasSize(1);
> +      } finally {
> +         returnContainer(container);
> +      }
> +   }
>  }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to