Project

General

Profile

« Previous | Next » 

Revision 51e8d9d2

Added by Greg Sutcliffe over 10 years ago

Fixes #4020 - enable @static to work on all OS template types

View differences:

test/functional/unattended_controller_test.rb
assert @response.headers["Content-Type"].match("text/plain")
end
test "should set @static when requested" do
Setting[:safemode_render]=false
@request.env["HTTP_X_RHN_PROVISIONING_MAC_0"] = "eth0 #{hosts(:redhat).mac}"
get(:provision, 'static' => 'true')
assert_match(%r{static:true}, @response.body)
end
test "should support spoof" do
get :provision, {:spoof => hosts(:ubuntu).ip}, set_session_user
assert_response :success

Also available in: Unified diff