Skip to content

Regenerate all the e2e expect json files

Craig Smith requested to merge regenerate_all_expect_end_to_end_files into master

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?

Edited by Craig Smith

Merge request reports