-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: add support of startOffset and endOffset #430
Conversation
Codecov Report
@@ Coverage Diff @@
## master #430 +/- ##
============================================
- Coverage 63.27% 63.15% -0.12%
+ Complexity 618 610 -8
============================================
Files 32 32
Lines 5113 5133 +20
Branches 486 490 +4
============================================
+ Hits 3235 3242 +7
- Misses 1713 1726 +13
Partials 165 165
Continue to review full report at Codecov.
|
storage.list( | ||
bucketName, | ||
Storage.BlobListOption.startOffset("test-list-blobs-start-offset-blob"), | ||
Storage.BlobListOption.endOffset("test-list-blobs-end-offset-blob3")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend starting from not the first object in the new objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this test with new one.
Storage.BlobListOption.startOffset("test-list-blobs-start-offset-blob"), | ||
Storage.BlobListOption.endOffset("test-list-blobs-end-offset-blob3")); | ||
// Listing blobs is eventually consistent, we loop until the list is of the expected size. | ||
while (Iterators.size(page.iterateAll().iterator()) != 3) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't tell if this is working because it's using all the objects created during the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frankyn yes you are right, i have wrote new test instead of that. Now you can easily verify it.
@frankyn PTAL |
Fixes #424