Skip to content

[Bug]: ./test.sh failing with errors #210

@cruse1977

Description

@cruse1977

NetBox access-list plugin version

v1.6.1

NetBox version

v4.0.11

Steps to Reproduce

Run ./test.sh

Expected Behavior

Tests Complete as expected

Observed Behavior

Exception occurs -

test_root (netbox_acls.tests.test_api.AppTest.test_root) ... ok

======================================================================
FAIL: test_graphql_get_object (netbox_acls.tests.test_api.ACLTestCase.test_graphql_get_object)

Traceback (most recent call last):
File "/opt/netbox/venv/lib/python3.11/site-packages/django/test/utils.py", line 443, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/netbox/utilities/testing/api.py", line 555, in test_graphql_get_object
self.assertIn('errors', data)
AssertionError: 'errors' not found in {'data': {'access_list': {'changelog': [], 'display': 'testacl1', 'class_type': 'AccessList', 'tags': [], 'custom_fields': {}, 'assigned_object_type': {'id': '36'}, 'id': '1', 'created': '2024-09-12T21:47:09.050112+00:00', 'last_updated': '2024-09-12T21:47:09.050119+00:00', 'custom_field_data': {}, 'name': 'testacl1', 'assigned_object_id': 1, 'type': 'standard', 'default_action': 'deny', 'comments': ''}}}


Ran 22 tests in 0.493s

FAILED (failures=1, skipped=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions