Add test projects
What does this MR do?
Copy test projects to the qa/fixtures
directory so that image integration tests can run without fetching them. Image integration tests no longer rely on external projects, and tests are easier to read and review.
Moving test projects to the analyzer project is a step toward using child pipelines to run job integration tests.
Also, introduce new project directories for these cases:
- go-modules with go.sum in a sub-directory
- php-composer with a broken composer.json
- ruby-bundler with gems.rb instead of Gemfile.lock
Prior to this MR, this test cases where covered by altering the test projects right before the scan.
This sits on top of !208 (merged).
Compared to !208 (merged), execution time of image test
is down to 30s.
What are the relevant issue numbers?
gitlab-org/gitlab#297361 (closed)
Does this MR meet the acceptance criteria?
Changelog entry added-
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Fabien Catteau