Add Dedicated instance spec for PATCH admin registrations profile

What does this MR do and why?

Admin::Registrations::ProfilesController runs verify_available! before every action, and it returns 404 on GitLab Dedicated. When the self_managed_welcome_onboarding feature flag was removed in !239674 (merged), the old 404 spec for update went away, and only new kept a Dedicated spec. This MR adds the matching when on a Dedicated instance context for PATCH /admin/registrations/profile, so the write path is covered too.

Closes #602426 (closed).

References

Follow-up from !239674 (merged).

Screenshots or screen recordings

Not applicable — spec-only change.

How to set up and validate locally

  1. Run bundle exec rspec spec/requests/admin/registrations/profiles_controller_spec.rb.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

This contribution was prepared with the help of an AI assistant. I reviewed the changes and take responsibility for them.

Merge request reports

Loading
Loading