Skip to content

Update Ci::Catalog::Resources::ValidationService to scan for components

Laura Montemayor requested to merge update-validation-service into master

What does this MR do and why?

Updates the Ci::Catalog::Resources::ValidationService to include a new check that makes sure the repository contains at least one component.

  • Adds scan_directory_for_components
  • Adds a limit argument to fetch_component_paths, and establishes a limit of 50 as a default.
  • Adds a catalog_resource_components trait to project to allow us to easily reference a properly structured project that would be a catalog resource with components

This is a broken down MR needed for: #415413 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports