-
Notifications
You must be signed in to change notification settings - Fork 90
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
Prepare train for using credential sets #394
Conversation
b69ccf5
to
ae7b78b
Compare
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
63edebe
to
ca23b1e
Compare
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.
software engineer, debug thyself!
@@ -228,7 +229,7 @@ | |||
end | |||
|
|||
it 'returns the local backend if nothing was provided' do | |||
Train.validate_backend({}).must_equal :local | |||
Train.validate_backend({}).must_equal 'local' |
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.
If all backend driver names are strings, how did this ever pass as symbols?
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.
Looks good once comments addressed
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
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.
Thanks for this @clintoncwolfe!
@@ -3,5 +3,6 @@ | |||
require 'minitest/autorun' | |||
require 'minitest/spec' | |||
require 'mocha/setup' | |||
require 'byebug' |
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.
Hey! It's in the helper now 😄
Train has historically either used explicit options passed in a hash, or parsed a --target option as a URL. Both are a bit unwieldy, especially the URI method.
This PR makes a few changes to make it easier to work with credentials passed in as a hash.