Revision a96fc62a
Added by Ondřej Ezr over 2 years ago
test/controllers/api/v2/hosts_controller_test.rb | ||
---|---|---|
|
||
Resolv.any_instance.stubs(:getnames).returns(['else.where'])
|
||
post :facts, params: { :name => hostname, :facts => facts }
|
||
assert_response :forbidden
|
||
assert_response :redirect
|
||
end
|
||
|
||
test 'when "require_ssl" is false, HTTP requests should be able to import facts' do
|
Also available in: Unified diff
Fixes #34234 - do not allow HTTP on SmartProxy Auth
SmartProxyAuth enabled on its endpoints HTTP to log a message, that ssl is required.
This in not necessary and it is hard to keep for the future as Rails 6.1 will make that harder.
There is not too much benefit from this, so it's better to drop it.