Files
netbox/netbox/vpn/tests/test_tables.py
Martin Hauser b8b9cf1430 test(tables): Add reusable OrderableColumnsTestCase
Introduce `TableTestCases.OrderableColumnsTestCase`, a shared base class
that automatically discovers sortable columns from list-view querysets
and verifies each renders without exceptions in both ascending and
descending order.

Add per-table smoke tests across circuits, core, dcim, extras, ipam,
tenancy, users, virtualization, vpn, and wireless apps.

Fixes #21766
2026-04-06 15:36:59 +02:00

46 lines
1.1 KiB
Python

from django.test import tag
from utilities.testing import TableTestCases
from vpn.tables import *
class TunnelGroupTableTest(TableTestCases.OrderableColumnsTestCase):
table = TunnelGroupTable
class TunnelTableTest(TableTestCases.OrderableColumnsTestCase):
table = TunnelTable
@tag("regression")
class TunnelTerminationTableTest(TableTestCases.OrderableColumnsTestCase):
table = TunnelTerminationTable
class IKEProposalTableTest(TableTestCases.OrderableColumnsTestCase):
table = IKEProposalTable
class IKEPolicyTableTest(TableTestCases.OrderableColumnsTestCase):
table = IKEPolicyTable
class IPSecProposalTableTest(TableTestCases.OrderableColumnsTestCase):
table = IPSecProposalTable
class IPSecPolicyTableTest(TableTestCases.OrderableColumnsTestCase):
table = IPSecPolicyTable
class IPSecProfileTableTest(TableTestCases.OrderableColumnsTestCase):
table = IPSecProfileTable
class L2VPNTableTest(TableTestCases.OrderableColumnsTestCase):
table = L2VPNTable
class L2VPNTerminationTableTest(TableTestCases.OrderableColumnsTestCase):
table = L2VPNTerminationTable