mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
Added Device asset_tag field to API tests
This commit is contained in:
parent
c86a1123f0
commit
2b8e06faa2
@ -327,6 +327,7 @@ class DeviceTest(APITestCase):
|
|||||||
'tenant',
|
'tenant',
|
||||||
'platform',
|
'platform',
|
||||||
'serial',
|
'serial',
|
||||||
|
'asset_tag',
|
||||||
'rack',
|
'rack',
|
||||||
'position',
|
'position',
|
||||||
'face',
|
'face',
|
||||||
@ -370,6 +371,7 @@ class DeviceTest(APITestCase):
|
|||||||
def test_get_list_flat(self, endpoint='/api/dcim/devices/?format=json_flat'):
|
def test_get_list_flat(self, endpoint='/api/dcim/devices/?format=json_flat'):
|
||||||
|
|
||||||
flat_fields = [
|
flat_fields = [
|
||||||
|
'asset_tag',
|
||||||
'comments',
|
'comments',
|
||||||
'device_role_id',
|
'device_role_id',
|
||||||
'device_role_name',
|
'device_role_name',
|
||||||
|
Loading…
Reference in New Issue
Block a user