Revision bc11c17b
Added by Ewoud Kohl van Wijngaarden over 10 years ago
test/functional/api/v2/hosts_controller_test.rb | ||
---|---|---|
test "should run puppet for specific host" do
|
||
User.current=nil
|
||
ProxyAPI::Puppet.any_instance.stubs(:run).returns(true)
|
||
get :puppetrun, { :id => hosts(:one).to_param }
|
||
put :puppetrun, { :id => hosts(:one).to_param }
|
||
assert_response :success
|
||
end
|
||
|
Also available in: Unified diff
Fixes #4022: Make api puppetrun a PUT for REST standards