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

First commit to bring aws-sdk-ruby tests in mint. #60

Merged
merged 1 commit into from
Jul 1, 2017

Conversation

deekoder
Copy link
Contributor

No description provided.

@deekoder deekoder force-pushed the aws-ruby branch 2 times, most recently from 730aff8 to c2593c2 Compare June 30, 2017 23:19
apt-get update && \
apt-get install -y ruby ruby-dev ruby-bundler && \
rm -rf /var/lib/apt/lists/*

Copy link
Contributor

Choose a reason for hiding this comment

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

remove extra lines

}

main() {
# Start with installing python3.
Copy link
Contributor

Choose a reason for hiding this comment

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

update comment

access_key_id = ENV['ACCESS_KEY'] ||= 'ACESS_KEY is not set'
secret_access_key = ENV['SECRET_KEY'] ||= 'SECRET_KEY is not set'
data_dir = ENV['DATA_DIR'] ||= 'DATA_DIR is not set'
enable_https = ENV['ENABLE_HTTPS']
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't all credentials default to play.minio.io if not set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if its not set for some reason, this string would help in easy debugging.

endpoint = 'http://' + endpoint
end

puts endpoint
Copy link
Contributor

Choose a reason for hiding this comment

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

can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

ruby --version
}

# Install PY dependencies
Copy link
Contributor

Choose a reason for hiding this comment

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

PY -> ruby

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

end
rescue
puts "Bucket Delete Test Fails"
end
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation seems to be off on this file. Is begin/end blocks better vs methods? If you were to add more checks for boundary conditions for each API, this would read better if each test is in its own method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. @poornas will be doing what you are exactly suggesting via #61 fix.

@deekoder deekoder force-pushed the aws-ruby branch 4 times, most recently from b5989c5 to 521f5f8 Compare July 1, 2017 02:13
Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM

@nitisht nitisht merged commit 2b97589 into minio:master Jul 1, 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.

4 participants