netstat: Remove test that assumed non-named iface in the status
The previous VMI interface status is no longer affecting a fresh report
and a non-named interface is not expected.
Therefore, remove the test that inputted a VMI interface status that
lacked the interface/network name.
@@ -275,42 +275,6 @@ var _ = Describe("netstat", func() {
}), "the new interface should be reported in the status")
})
- It("should replace a non-named interface with new data (with name) from the domain", func() {
- const (
- networkName = "primary"
- existingIPv4 = "1.1.1.1"
- existingMAC = "C0:01:BE:E7:15:G0:0D"
- newDomainMAC = "22:22:22:22:22:22"
- )
-
- vmi.Spec.Networks = []v1.Network{
- {
- Name: "other_name",
- NetworkSource: v1.NetworkSource{Multus: &v1.MultusNetwork{}},
- },
- {
- Name: networkName,
- NetworkSource: v1.NetworkSource{Pod: &v1.PodNetwork{}},
- },
- }
-
- vmi.Status.Interfaces = []v1.VirtualMachineInstanceNetworkInterface{
- {IP: existingIPv4, MAC: existingMAC},
- }
-
- domain := &api.Domain{
- Spec: api.DomainSpec{Devices: api.Devices{Interfaces: []api.Interface{
- newDomainSpecIface(networkName, newDomainMAC),
- }}},
- }
-
- netStat.UpdateStatus(vmi, domain)
-
- Expect(vmi.Status.Interfaces).To(Equal([]v1.VirtualMachineInstanceNetworkInterface{
- newVMIStatusIface(networkName, nil, newDomainMAC, "", netvmispec.InfoSourceDomain),
- }), "the new interface should be reported in the status")
- })
-
It("should report SR-IOV interface with MAC and network name, based on VMI spec and guest-agent data", func() {
const (
networkName = "sriov-network"
