Skip to content

Validate extra apt sources

Pavit Kaur requested to merge PavitKaur05/debci:validation-for-apt-source into master
  • 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 in job.rb which in turn calls invalid_extra_apt_sources
  • Updated POST /test/:suite/:arch/:package in api.rb to halt if invalid extra_apt_sources is passed.
  • Updated validate_form_submission in self_service.rb to check for invalid extra_apt_sources`.
  • Updated validate_tests and validate_batch_tests in test_handler.rb to include errors of invalid extra_apt_sources.
  • Added/Updated tests of above.

Fixes: #183 (closed)

Edited by Pavit Kaur

Merge request reports

Loading