mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
#2658: Fix test permissions
This commit is contained in:
parent
e0cfd5e49b
commit
083fda3172
@ -699,7 +699,7 @@ class VLANGroupTest(APIViewTestCases.APIViewTestCase):
|
|||||||
"""
|
"""
|
||||||
Test retrieval of all available VLANs within a group.
|
Test retrieval of all available VLANs within a group.
|
||||||
"""
|
"""
|
||||||
self.add_permissions('ipam.view_vlan')
|
self.add_permissions('ipam.view_vlangroup', 'ipam.view_vlan')
|
||||||
vlangroup = VLANGroup.objects.first()
|
vlangroup = VLANGroup.objects.first()
|
||||||
|
|
||||||
vlans = (
|
vlans = (
|
||||||
@ -722,7 +722,7 @@ class VLANGroupTest(APIViewTestCases.APIViewTestCase):
|
|||||||
"""
|
"""
|
||||||
Test the creation of a single available VLAN.
|
Test the creation of a single available VLAN.
|
||||||
"""
|
"""
|
||||||
self.add_permissions('ipam.view_vlan', 'ipam.add_vlan')
|
self.add_permissions('ipam.view_vlangroup', 'ipam.view_vlan', 'ipam.add_vlan')
|
||||||
vlangroup = VLANGroup.objects.first()
|
vlangroup = VLANGroup.objects.first()
|
||||||
VLAN.objects.create(vid=1, name='VLAN 1', group=vlangroup)
|
VLAN.objects.create(vid=1, name='VLAN 1', group=vlangroup)
|
||||||
|
|
||||||
@ -741,7 +741,7 @@ class VLANGroupTest(APIViewTestCases.APIViewTestCase):
|
|||||||
"""
|
"""
|
||||||
Test the creation of multiple available VLANs.
|
Test the creation of multiple available VLANs.
|
||||||
"""
|
"""
|
||||||
self.add_permissions('ipam.view_vlan', 'ipam.add_vlan')
|
self.add_permissions('ipam.view_vlangroup', 'ipam.view_vlan', 'ipam.add_vlan')
|
||||||
vlangroup = VLANGroup.objects.first()
|
vlangroup = VLANGroup.objects.first()
|
||||||
|
|
||||||
vlans = (
|
vlans = (
|
||||||
|
Loading…
Reference in New Issue
Block a user