Skip to content

Commit

Permalink
Merge pull request kubevirt#11155 from EdDev/tests-sriov-remove-ipv6
Browse files Browse the repository at this point in the history
tests, sriov: Drop IPv6 connectivity test
  • Loading branch information
kubevirt-bot authored Feb 9, 2024
2 parents fa7aa29 + ff4d9cc commit a7f227b
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions tests/network/sriov.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ var _ = Describe("[Serial]SRIOV", Serial, decorators.SRIOV, func() {
To(Succeed(), shouldCreateNetwork)
})

It("[test_id:3956]should connect to another machine with sriov interface over IPv4", func() {
It("[test_id:3956]should connect to another machine with sriov interface over IP", func() {
cidrA := "192.168.1.1/24"
cidrB := "192.168.1.2/24"
ipA, err := libnet.CidrToIP(cidrA)
Expand Down Expand Up @@ -481,35 +481,6 @@ var _ = Describe("[Serial]SRIOV", Serial, decorators.SRIOV, func() {
}, 15*time.Second, time.Second).Should(Succeed())
})

It("[test_id:3957]should connect to another machine with sriov interface over IPv6", func() {
vmi1CIDR := "fc00::1/64"
vmi2CIDR := "fc00::2/64"
vmi1IP, err := libnet.CidrToIP(vmi1CIDR)
Expect(err).ToNot(HaveOccurred())
vmi2IP, err := libnet.CidrToIP(vmi2CIDR)
Expect(err).ToNot(HaveOccurred())

//create two vms on the same sriov network
vmi1, err := createSRIOVVmiOnNode(sriovNode, sriovnetLinkEnabled, vmi1CIDR)
Expect(err).ToNot(HaveOccurred())
DeferCleanup(deleteVMI, vmi1)
vmi2, err := createSRIOVVmiOnNode(sriovNode, sriovnetLinkEnabled, vmi2CIDR)
Expect(err).ToNot(HaveOccurred())
DeferCleanup(deleteVMI, vmi2)

vmi1, err = waitVMI(vmi1)
Expect(err).NotTo(HaveOccurred())
vmi2, err = waitVMI(vmi2)
Expect(err).NotTo(HaveOccurred())

Eventually(func() error {
return libnet.PingFromVMConsole(vmi1, vmi2IP)
}, 15*time.Second, time.Second).Should(Succeed())
Eventually(func() error {
return libnet.PingFromVMConsole(vmi2, vmi1IP)
}, 15*time.Second, time.Second).Should(Succeed())
})

Context("With VLAN", func() {
const (
cidrVlaned1 = "192.168.0.1/24"
Expand Down

0 comments on commit a7f227b

Please sign in to comment.