Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: plumb list blobs match glob option for grpc transport #2759

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading