tests, network, primary-pod: Use libvmi for default binding
@@ -62,7 +62,7 @@ var _ = SIGDescribe("Primary Pod Network", func() {
var vmi *v1.VirtualMachineInstance
BeforeEach(func() {
- vmi = setupVMI(virtClient, vmiWithDefaultBinding())
+ vmi = setupVMI(virtClient, libvmi.NewAlpine())
})
It("should report PodIP as its own on interface status", func() { AssertReportedIP(vmi) })
@@ -173,13 +173,6 @@ func setupVMI(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance)
return vmi
}
-func vmiWithDefaultBinding() *v1.VirtualMachineInstance {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
- vmi.Spec.Domain.Devices.Interfaces = nil
- vmi.Spec.Networks = nil
- return vmi
-}
-
func vmiWithBridgeBinding() *v1.VirtualMachineInstance {
vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
vmi.Spec.Domain.Devices.Interfaces = []v1.Interface{*v1.DefaultBridgeNetworkInterface()}
