mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 03:42:25 -06:00
Use _list appendix for GraphQL list queries
This commit is contained in:
@@ -6,16 +6,16 @@ from .types import *
|
||||
|
||||
class VirtualizationQuery(graphene.ObjectType):
|
||||
cluster = ObjectField(ClusterType)
|
||||
clusters = ObjectListField(ClusterType)
|
||||
cluster_list = ObjectListField(ClusterType)
|
||||
|
||||
cluster_group = ObjectField(ClusterGroupType)
|
||||
cluster_groups = ObjectListField(ClusterGroupType)
|
||||
cluster_group_list = ObjectListField(ClusterGroupType)
|
||||
|
||||
cluster_type = ObjectField(ClusterTypeType)
|
||||
cluster_types = ObjectListField(ClusterTypeType)
|
||||
cluster_type_list = ObjectListField(ClusterTypeType)
|
||||
|
||||
virtual_machine = ObjectField(VirtualMachineType)
|
||||
virtual_machines = ObjectListField(VirtualMachineType)
|
||||
virtual_machine_list = ObjectListField(VirtualMachineType)
|
||||
|
||||
vm_interface = ObjectField(VMInterfaceType)
|
||||
vm_interfaces = ObjectListField(VMInterfaceType)
|
||||
vm_interface_list = ObjectListField(VMInterfaceType)
|
||||
|
||||
@@ -211,9 +211,7 @@ class VMInterfaceTest(APIViewTestCases.GraphQLTestCase, APIViewTestCases.APIView
|
||||
bulk_update_data = {
|
||||
'description': 'New description',
|
||||
}
|
||||
|
||||
graphql_base_name = 'vm_interface'
|
||||
graphql_base_name_plural = 'vm_interfaces'
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
||||
Reference in New Issue
Block a user