Skip to content

Don't pass project and token to BaseTestResult

What does this MR do and why?

Re: gitlab-org/gitlab#468942 (closed)

The MR essentially reverts most of the initializer changes in !213 (merged), and added a hard coded project and empty token to fetch file line content. If the request to file_contents raises an error when called inside the repository_file_line_content function, we will ignore the exception and return nil, indicating that the file line content is not available.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Edited by Jennifer Li

Merge request reports