@@ -43,7 +43,6 @@ var _ = Describe("ComplexTest", Ordered, label.Legacy(), func() {
4343 hasNoConsumerLabel = map[string]string{"hasNoConsumer": "complex-test"}
4444 ns string
4545 phaseByVolumeBindingMode = util.GetExpectedDiskPhaseByVolumeBindingMode()
46- f = framework.NewFramework("")
4746 )
4847
4948 AfterEach(func() {
@@ -107,23 +106,25 @@ var _ = Describe("ComplexTest", Ordered, label.Legacy(), func() {
107106 })
108107 })
109108
110- Context("When virtual machines IP addresses are applied", func() {
111- It("patches custom VMIP with unassigned address", func() {
112- vmipName := fmt.Sprintf("%s-%s", namePrefix, "vm-custom-ip")
113- Eventually(func() error {
114- return AssignIPToVMIP(f, ns, vmipName)
115- }).WithTimeout(LongWaitDuration).WithPolling(Interval).Should(Succeed())
116- })
117-
118- It("checks VMIPs phases", func() {
119- By(fmt.Sprintf("VMIPs should be in %s phases", PhaseAttached))
120- WaitPhaseByLabel(kc.ResourceVMIP, PhaseAttached, kc.WaitOptions{
121- Labels: testCaseLabel,
122- Namespace: ns,
123- Timeout: MaxWaitTimeout,
124- })
125- })
126- })
109+ // TODO: Creating a VMIP outside the allowed range is now rejected by the webhook.
110+ // Re-enable this when we figure out how to keep the test coverage.
111+ // Context("When virtual machines IP addresses are applied", func() {
112+ // It("patches custom VMIP with unassigned address", func() {
113+ // vmipName := fmt.Sprintf("%s-%s", namePrefix, "vm-custom-ip")
114+ // Eventually(func() error {
115+ // return AssignIPToVMIP(f, ns, vmipName)
116+ // }).WithTimeout(LongWaitDuration).WithPolling(Interval).Should(Succeed())
117+ // })
118+
119+ // It("checks VMIPs phases", func() {
120+ // By(fmt.Sprintf("VMIPs should be in %s phases", PhaseAttached))
121+ // WaitPhaseByLabel(kc.ResourceVMIP, PhaseAttached, kc.WaitOptions{
122+ // Labels: testCaseLabel,
123+ // Namespace: ns,
124+ // Timeout: MaxWaitTimeout,
125+ // })
126+ // })
127+ // })
127128
128129 Context("When virtual disks are applied", func() {
129130 It("checks VDs phases with consumers", func() {
0 commit comments