Skip to content

[rspec] Set owner organization to namespace organization

What does this MR do and why?

grouporganizations is working on Organization Isolation. This means that data that belongs together should be part of the same organization.

This means that our test suite should also ensure that data is created in the same organization

This MR address an issue with Namespace creating: If a namespace was created, the owner of that namespace was not assigned to the same organization.

This FactoryBot change follows the logic in https://gitlab.com/gitlab-org/gitlab/-/blob/e903a1ece7659b9047abba94d01d55fcc2a6b09d/app/services/users/build_service.rb#L45

This problem was found while working on #548429

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rutger Wessels

Merge request reports

Loading