Skip to content

Update gomodules expectation to align with test project

What does this MR do?

Update fixtures to align with gemnasium (gitlab-org/security-products/tests/go-modules!85 - merged) updates the tests/go-modules/main.go file so that it's the same as the gemnasium/qa/fixtures/go-modules/gomod/default/main.go fixture, for the sake of consistency. However, this change causes the downstream qa-gosec-sast test to fail because the expectations are now incorrect, due to an additional newline that was inserted into the tests/go-modules/main.go file.

This MR updates the line numbers in the qa/expect/go-modules/gl-sast-report.json expectation file so it reflects the corresponding tests/go-modules/main.go in the test project.

What are the relevant issue numbers?

N/A

Testing

Tested successfully in this pipeline.

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports