Add tests for Prefix and IPAddress ordering #3232

Closed
opened 2025-12-29 18:26:56 +01:00 by adam · 0 comments
Owner

Originally created by @DanSheps on GitHub (Jan 28, 2020).

Originally assigned to: @DanSheps on GitHub.

Proposed Changes

This issue is related to adding tests to ensure the data integrity of the Prefix and IPAddress model ordering behaviour.

This will add the following tests:

  • test_prefix_ordering
  • test_ipaddress_ordering
  • test_prefix-vrf_ordering
  • test_ipaddress-vrf_ordering
  • test_prefix_complex_ordering

The last test will be expected to have the ordering that results in a "problem" for #2562

Justification

This is tangently related to #2562 however the main goal is to ensure data integrity.

Originally created by @DanSheps on GitHub (Jan 28, 2020). Originally assigned to: @DanSheps on GitHub. ### Proposed Changes This issue is related to adding tests to ensure the data integrity of the Prefix and IPAddress model ordering behaviour. This will add the following tests: * test_prefix_ordering * test_ipaddress_ordering * test_prefix-vrf_ordering * test_ipaddress-vrf_ordering * test_prefix_complex_ordering The last test will be expected to have the ordering that results in a "problem" for #2562 ### Justification This is tangently related to #2562 however the main goal is to ensure data integrity.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:26:56 +01:00
adam closed this issue 2025-12-29 18:26:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3232