@@ -597,14 +597,13 @@ func TestIgnitionISOInjector(t *testing.T) {
597597 require .Equal (t , []byte ("data" ), injector .(* inject.ISOInjector ).IgnitionEnricher .BootstrapData )
598598}
599599
600- /* TODO
601600func TestReconcileBootstrapData_DefaultDeviceIPPoolRef (t * testing.T ) {
602601 machineScope , _ , kubeClient := setupReconcilerTestWithCondition (t , infrav1 .WaitingForBootstrapDataReconcilationReason )
603602 machineScope .ProxmoxMachine .Spec .Network = & infrav1.NetworkSpec {
604603 NetworkDevices : []infrav1.NetworkDevice {{
605604 Bridge : ptr .To ("vmbr0" ),
606605 Model : ptr .To ("virtio" ),
607- Name: infrav1.DefaultNetworkDevice,
606+ Name : ptr . To ( infrav1 .DefaultNetworkDevice ) ,
608607 InterfaceConfig : infrav1.InterfaceConfig {
609608 IPPoolRef : []corev1.TypedLocalObjectReference {{
610609 APIGroup : ptr .To ("ipam.cluster.x-k8s.io" ),
@@ -619,7 +618,7 @@ func TestReconcileBootstrapData_DefaultDeviceIPPoolRef(t *testing.T) {
619618 vm .VirtualMachineConfig .SMBios1 = biosUUID
620619 machineScope .SetVirtualMachine (vm )
621620 machineScope .ProxmoxMachine .Status .IPAddresses = map [string ]* infrav1.IPAddresses {infrav1 .DefaultNetworkDevice : {IPV4 : []string {"10.5.10.10" }}}
622- createIP4AddressResource(t, kubeClient, machineScope, infrav1.DefaultNetworkDevice, "10.5.10.10")
621+ createIP4AddressResource (t , kubeClient , machineScope , infrav1 .DefaultNetworkDevice , "10.5.10.10" , nil )
623622
624623 createBootstrapSecret (t , kubeClient , machineScope , cloudinit .FormatCloudConfig )
625624 getISOInjector = func (_ * proxmox.VirtualMachine , _ []byte , _ , _ cloudinit.Renderer ) isoInjector {
@@ -630,7 +629,6 @@ func TestReconcileBootstrapData_DefaultDeviceIPPoolRef(t *testing.T) {
630629 requeue , err := reconcileBootstrapData (context .Background (), machineScope )
631630 require .NoError (t , err )
632631 require .False (t , requeue )
633- require.False (t, conditions.Has(machineScope.ProxmoxMachine, infrav1.VMProvisionedCondition))
632+ require .True (t , conditions .Has (machineScope .ProxmoxMachine , infrav1 .VMProvisionedCondition ))
634633 require .True (t , * machineScope .ProxmoxMachine .Status .BootstrapDataProvided )
635634}
636- */
0 commit comments