Validate extra apt sources
- Added method
invalid_extra_apt_sources
in new module Validators::APTSource (validators.rb
) which validates apt source format returns array of invalid apt sources. - Added a custom validation method
validate_extra_apt_sources
injob.rb
which in turn callsinvalid_extra_apt_sources
- Updated POST
/test/:suite/:arch/:package
inapi.rb
to halt if invalid extra_apt_sources is passed. - Updated
validate_form_submission
inself_service.rb
to check for invalid extra_apt_sources`. - Updated
validate_tests
andvalidate_batch_tests
intest_handler.rb
to include errors of invalid extra_apt_sources. - Added/Updated tests of above.
Fixes: #183 (closed)
Edited by Pavit Kaur