Revision 7e3ca5c2
Added by Michael Moll over 10 years ago
test/puppetssh_test.rb | ||
---|---|---|
@puppetssh.stubs(:which).with("sudo", anything).returns("/usr/bin/sudo")
|
||
@puppetssh.stubs(:which).with("ssh", anything).returns("/usr/bin/ssh")
|
||
|
||
@puppetssh.expects(:shell_command).with(["/usr/bin/ssh", "host1", "/usr/bin/puppet\\ agent\\ --onetime\\ --no-usecacheonfailure"], false).returns(true)
|
||
@puppetssh.expects(:shell_command).with(["/usr/bin/ssh", "host2", "/usr/bin/puppet\\ agent\\ --onetime\\ --no-usecacheonfailure"], false).returns(true)
|
||
@puppetssh.expects(:shell_command).with(["/usr/bin/ssh", "host1", "puppet\\ agent\\ --onetime\\ --no-usecacheonfailure"], false).returns(true)
|
||
@puppetssh.expects(:shell_command).with(["/usr/bin/ssh", "host2", "puppet\\ agent\\ --onetime\\ --no-usecacheonfailure"], false).returns(true)
|
||
assert @puppetssh.run
|
||
end
|
||
|
Also available in: Unified diff
fixes #3874 - extend paths for FreeBSD support