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

Adds first AWS-SDK Ruby tests #73

Merged
merged 4 commits into from
Jul 5, 2017
Merged

Conversation

ebozduman
Copy link
Collaborator

Adds the following AWS SDK Ruby tests:

  1. Make/Create bucket
  2. Remove/Delete bucket
  3. List Buckets
  4. Bucket Exists
  5. Download/Get Object
  6. Upload/Put Object

end



Copy link
Member

Choose a reason for hiding this comment

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

We should comment each of the tests..about what they do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Harsha,
Will do.
I thought the names of the methods are clear enough to explain what they do.

Copy link
Member

Choose a reason for hiding this comment

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

Great

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@nitisht
Copy link
Contributor

nitisht commented Jul 4, 2017

@ebozduman can you pls take a look at @harshavardhana review comments.

end


def list_buckets_test(s3Resource, s3Client)
Copy link
Member

Choose a reason for hiding this comment

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

Is the ruby format tabbing here appropriate? like previous defs are of the wrong alignment than this test..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I also noticed that.
I am working on it.

print_logn("- Success!")
print_status(state, e)
end
end

region = ENV['SERVER_REGION'] ||= 'SERVER_REGION not set'
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor suggestion since everything else is in a def. This could also be in a def called validate. And endpoint generation could be also in a def. But i am ok with this to be improved next iteration. So LGTM for me.

@nitisht
Copy link
Contributor

nitisht commented Jul 5, 2017

@harshavardhana can you pls check this

@nitisht nitisht merged commit a09724a into minio:master Jul 5, 2017
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.

None yet

4 participants