Skip to content

Commit 59cefcf

Browse files
authored
test: delete case involving a vm reboot by deleting the pod (#1973)
Signed-off-by: Valeriy Khorunzhin <valeriy.khorunzhin@flant.com>
1 parent 7aeac46 commit 59cefcf

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/e2e/vm/power_state.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -171,26 +171,6 @@ var _ = Describe("PowerState", func() {
171171
util.UntilSSHReady(f, t.VM, framework.ShortTimeout)
172172
})
173173

174-
By("Reboot VM by Pod Deletion", func() {
175-
err := f.Clients.GenericClient().Get(context.Background(), crclient.ObjectKeyFromObject(t.VM), t.VM)
176-
Expect(err).NotTo(HaveOccurred())
177-
178-
runningCondition, _ := conditions.GetCondition(vmcondition.TypeRunning, t.VM.Status.Conditions)
179-
runningLastTransitionTime := runningCondition.LastTransitionTime.Time
180-
181-
util.RebootVirtualMachineByPodDeletion(f, t.VM)
182-
183-
if t.VM.Spec.RunPolicy != v1alpha2.AlwaysOnPolicy {
184-
util.UntilObjectPhase(string(v1alpha2.MachineStopped), framework.MiddleTimeout, t.VM)
185-
util.StartVirtualMachine(f, t.VM)
186-
}
187-
188-
util.UntilVirtualMachineRebooted(crclient.ObjectKeyFromObject(t.VM), runningLastTransitionTime, framework.LongTimeout)
189-
util.UntilObjectPhase(string(v1alpha2.MachineRunning), framework.ShortTimeout, t.VM)
190-
util.UntilObjectPhase(string(v1alpha2.BlockDeviceAttachmentPhaseAttached), framework.ShortTimeout, t.VMBDA)
191-
util.UntilSSHReady(f, t.VM, framework.ShortTimeout)
192-
})
193-
194174
By("Check VM can reach external network", func() {
195175
err := network.CheckCiliumAgents(context.Background(), f.Clients.Kubectl(), t.VM.Name, f.Namespace().Name)
196176
Expect(err).NotTo(HaveOccurred(), "Cilium agents check should succeed for VM %s", t.VM.Name)

0 commit comments

Comments
 (0)