Use SSH user name configured for a given target:
When a user is configured for the targeted host name, use it for SSH authentification instead of the name of current user logged in. * Modify Remote#user_name to use configured user name.
This commit is contained in:
5
features/steps/etc_steps.rb
Normal file
5
features/steps/etc_steps.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
# FIXME: our monkey patch currently prevent us from using `must' in step
|
||||
# definitions.
|
||||
Then(/^the output should contain my current login name$/) do
|
||||
assert_partial_output(Etc.getlogin, all_output)
|
||||
end
|
Reference in New Issue
Block a user