Skip to content

Sort IP Ranges in Groups Controller Specs

Jason Goodman requested to merge use-order-group-controller-spec into master

What does this MR do?

A group has_many :ip_restrictions.

In specs, when we reload and map over them, the order we get them from the database is nondeterministic.

These specs consistently fail for me locally, because they just happen to come from the database in the wrong order.

This fixes the issue by sorting the actual and the expected results.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Jason Goodman

Merge request reports