Skip to content

Add on_demand_scan routes

David Pisek requested to merge dpisek-on-demand-scan-routes-test into master

What does this MR do?

This adds the routes required for the upcoming DAST Site Profiles features which requires an index route where the profiles library will be shown, and a new route for creating DAST Site Profiles.

The routing looks like this:

  • index: /:namespace/:project/-/on_demand_scans/profiles
  • new: /:namespace/:project/-/on_demand_scans/profiles/site_profiles/new

How to test this?

  • Enable the :security_on_demand_scans_feature_flag feature flag.
echo "Feature.enable(:security_on_demand_scans_feature_flag)" | spring rails c
  • Navigate to the new pages by appending their path to some project's URL:
    • /:namespace/:project/-/on_demand_scans/profiles
    • /:namespace/:project/-/on_demand_scans/profiles/site_profiles/new

Screenshots

/:namespace/:project/-/on_demand_scans/profiles /:namespace/:project/-/on_demand_scans/profiles/site_profiles/new
image image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Paul Gascou-Vaillancourt

Merge request reports