Closes #18658: Add start on boot field to VirtualMachine model (#20751)

This commit is contained in:
RobertH1993
2025-11-12 20:59:01 +01:00
committed by GitHub
parent a4365be0a3
commit 01cbdbb968
15 changed files with 109 additions and 22 deletions

View File

@@ -211,7 +211,8 @@ class VirtualMachineTest(APIViewTestCases.APIViewTestCase):
name='Virtual Machine 3',
site=sites[0],
cluster=clusters[0],
local_context_data={'C': 3}
local_context_data={'C': 3},
start_on_boot=VirtualMachineStartOnBootChoices.STATUS_ON,
),
)
VirtualMachine.objects.bulk_create(virtual_machines)
@@ -235,6 +236,7 @@ class VirtualMachineTest(APIViewTestCases.APIViewTestCase):
{
'name': 'Virtual Machine 7',
'cluster': clusters[2].pk,
'start_on_boot': VirtualMachineStartOnBootChoices.STATUS_ON,
},
]