netbox-community / netbox-bgp

NetBox plugin for BGP related objects documentation
Apache License 2.0
251 stars 52 forks source link

No filter defined for routing_policy_id (routingpolicy) #197

Closed waja closed 1 month ago

waja commented 4 months ago

NetBox version 4.0.7

Describe the bug When installing netbox-bgp via Dockerfile in the Netbox docker image and running test.sh it is failing with:

FAIL: test_missing_filters (extras.tests.test_filtersets.TagTestCase.test_missing_filters)
Check for any model fields which do not have the required filter(s) defined.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/netbox/netbox/utilities/testing/filtersets.py", line 138, in test_missing_filters
    self.assertIn(
AssertionError: 'routing_policy_id' not found in odict_keys(['id', 'name', 'slug', 'color', 'description', 'object_types', 'created', 'last_updated', 'created_by_request', 'updated_by_request', 'modified_by_request', 'q', 'content_type', 'content_type_id', 'for_object_type_id', 'id__n', 'id__lte', 'id__lt', 'id__gte', 'id__gt', 'id__empty', 'name__n', 'name__ic', 'name__nic', 'name__iew', 'name__niew', 'name__isw', 'name__nisw', 'name__ie', 'name__nie', 'name__empty', 'slug__n', 'slug__ic', 'slug__nic', 'slug__iew', 'slug__niew', 'slug__isw', 'slug__nisw', 'slug__ie', 'slug__nie', 'slug__empty', 'color__n', 'color__ic', 'color__nic', 'color__iew', 'color__niew', 'color__isw', 'color__nisw', 'color__ie', 'color__nie', 'color__empty', 'description__n', 'description__ic', 'description__nic', 'description__iew', 'description__niew', 'description__isw', 'description__nisw', 'description__ie', 'description__nie', 'description__empty', 'object_types__n', 'created__n', 'created__lte', 'created__lt', 'created__gte', 'created__gt', 'created__empty', 'last_updated__n', 'last_updated__lte', 'last_updated__lt', 'last_updated__gte', 'last_updated__gt', 'last_updated__empty']) : No filter defined for routing_policy_id (routingpolicy)!

I'm not sure if I'm doing it wrong or if it's a bug.

Thanks, Jan.

cruse1977 commented 1 month ago

All tests are now passing, closing this