Regenerate all the e2e expect json files
What does this MR do?
Regenerating the expected JSON for the DAST end-to-end tests is hard and is labour intensive. This MR hopes to make this task trivial by adding the test.regenerate-e2e-expected-json
invoke task. The task clears the output directory, builds both dast and dast-future and then runs all of the end-to-end tests. It then "cleans" those json files and copies them to the expect
directory with the correct name.
This is especially useful at the moment since the end-to-end tests will need to be regenerated a number of times. First when Aggregate noisy DAST vulnerabilities into a single vulnerability is turned on by default and then when DAST v2 is released.
What are the relevant issue numbers?
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 -
Job definition example -
Vendored CI Templates (also in CE)
-
-
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Craig Smith