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

tests: add more checks in list buckets functional test #622

Merged

Conversation

balamurugana
Copy link
Member

No description provided.

@balamurugana balamurugana force-pushed the add-more-check-for-list-buckets branch 2 times, most recently from d3bb018 to b3f439c Compare October 3, 2017 01:35
for (Bucket bucket : client.listBuckets()) {
ignore(bucket);
if (bucket.name().equals(bucketName)) {
if (found) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would we have a duplicate entry? In what failure scenario, do you think this will happen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not happen. A buggy server may return duplicate entry so this check is added.

@balamurugana balamurugana force-pushed the add-more-check-for-list-buckets branch from b3f439c to f31cfdf Compare October 3, 2017 18:36
Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@balamurugana balamurugana merged commit c86c645 into minio:master Oct 4, 2017
@balamurugana balamurugana deleted the add-more-check-for-list-buckets branch October 4, 2017 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants