Project

General

Profile

« Previous | Next » 

Revision 643ca12c

Added by Ondřej Pražák almost 8 years ago

Fixes #15370 - Validate settings values

Adds validations for administrator, email_reply_address
and trusted_puppetmaster_hosts settings

View differences:

test/functional/api/v1/settings_controller_test.rb
end
test "should update setting" do
put :update, { :id => settings(:attributes1).to_param, :setting => { } }
put :update, { :id => settings(:attributes11).to_param, :setting => { } }
assert_response :success
end

Also available in: Unified diff