Environment details
- Programming language: Java
- OS: Fedora
- Language runtime version: 11
- Package version: 0.54.0
Steps to reproduce
Using Google Cloud Storage SDK, I have the requirement to return a list of up to a configurable number of object metadata and return the results and a continuation token if there are more results.
Page<Blob> list = storage.list(bucketName, Storage.BlobListOption.prefix(prefix), Storage.BlobListOption.pageSize(maxSize), Storage.BlobListOption.pageToken(continuationToken), Storage.BlobListOption.startOffset(startAfter));
Expectation is list.getValues() will return a collection of blobs of up to maxSize size.
Storage Testbench: maxSize is ignored and the full list of objects is returned
Google Cloud Storage: maxSize is honored and a continuation token is returned and I can make the request again with the token to get the remaining blobs.
Environment details
Steps to reproduce
Using Google Cloud Storage SDK, I have the requirement to return a list of up to a configurable number of object metadata and return the results and a continuation token if there are more results.
Expectation is
list.getValues()will return a collection of blobs of up to maxSize size.Storage Testbench: maxSize is ignored and the full list of objects is returned
Google Cloud Storage: maxSize is honored and a continuation token is returned and I can make the request again with the token to get the remaining blobs.