mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-14 05:00:13 +02:00
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
46 lines
1.1 KiB
Python
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
|