Skip to content

Commit

Permalink
fix: plumb list blobs match glob option for grpc transport (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead authored Oct 8, 2024
1 parent 88b3f62 commit 207abd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,7 @@ private MatchGlob(String val) {

@Override
public Mapper<ListObjectsRequest.Builder> listObjects() {
return CrossTransportUtils.throwHttpJsonOnly(
com.google.cloud.storage.Storage.BlobListOption.class, "matchGlob(String)");
return b -> b.setMatchGlobBytes(ByteString.copyFromUtf8(val));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ public void testListBlobsCurrentDirectoryIncludesBothObjectsAndSyntheticDirector

@Test
// When gRPC support is added for matchGlob, enable this test for gRPC.
@Exclude(transports = Transport.GRPC)
public void testListBlobsWithMatchGlob() throws Exception {
BucketInfo bucketInfo = BucketInfo.newBuilder(generator.randomBucketName()).build();
try (TemporaryBucket tempBucket =
Expand Down

0 comments on commit 207abd1

Please sign in to comment.