Skip to content

Add seeds for DAST Profiles

What does this MR do and why?

this merge request adds some seed data for dast in order to make testing and review for other engineers outside of groupdynamic analysis more straightforward.

Related Issue(s)

Add development environment seed data for on-demand DAST scans

Output

% bundle exec rake db:seed_fu FILTER=dast_profiles

== Filtering seed files against regexp: /dast_profiles/

== Seed from ee/db/fixtures/development/21_dast_profiles.rb
/Users/philip/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23: warning: ⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment.  Your jobs will not go to Redis.

OK

How to set up and validate locally

  1. check the existing Dast::Profile count in a rails console
Dast::Profile.count
  1. run the seed rake task
bundle exec rake db:seed_fu FILTER=dast_profiles
  1. check the new Dast::Profile count in a rails console
Dast::Profile.count

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 Philip Cunningham

Merge request reports