Skip to content

Commit

Permalink
Merge pull request #446 from SchSeba/fix_sriov_test_for_sno
Browse files Browse the repository at this point in the history
small changes in e2e test to run on single node
  • Loading branch information
zeeke committed Jun 1, 2023
2 parents 03cca92 + 27f6974 commit 109c2c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/conformance/tests/test_sriov_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ var _ = Describe("[sriov] operator", func() {
nodeState, err := clients.SriovNetworkNodeStates(operatorNamespace).Get(context.Background(), vfioNode, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
return nodeState.Spec.Interfaces
}, 1*time.Minute, 1*time.Second).Should(ContainElement(MatchFields(
}, 3*time.Minute, 1*time.Second).Should(ContainElement(MatchFields(
IgnoreExtras,
Fields{
"Name": Equal(vfioNic.Name),
Expand Down Expand Up @@ -1097,7 +1097,7 @@ var _ = Describe("[sriov] operator", func() {
nodeState, err := clients.SriovNetworkNodeStates(operatorNamespace).Get(context.Background(), node, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
return nodeState.Spec.Interfaces
}, 1*time.Minute, 1*time.Second).Should(ContainElement(MatchFields(
}, 3*time.Minute, 1*time.Second).Should(ContainElement(MatchFields(
IgnoreExtras,
Fields{
"Name": Equal(intf.Name),
Expand Down Expand Up @@ -1676,6 +1676,9 @@ var _ = Describe("[sriov] operator", func() {
Expect(err).ToNot(HaveOccurred())
Expect(errOutput).To(Equal(""))
Expect(output).To(ContainSubstring("tap23: <BROADCAST,MULTICAST> mtu 1500"))

err = clients.Delete(context.Background(), podObj)
Expect(err).ToNot(HaveOccurred())
})
})
})
Expand Down Expand Up @@ -1977,7 +1980,7 @@ func createCustomTestPod(node string, networks []string, hostNetwork bool, podCa
runningPod, err := clients.Pods(namespaces.Test).Get(context.Background(), createdPod.Name, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
return runningPod.Status.Phase
}, 3*time.Minute, 1*time.Second).Should(Equal(corev1.PodRunning))
}, 5*time.Minute, 1*time.Second).Should(Equal(corev1.PodRunning))
pod, err := clients.Pods(namespaces.Test).Get(context.Background(), createdPod.Name, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
return pod
Expand Down

0 comments on commit 109c2c2

Please sign in to comment.