Skip to content

Commit

Permalink
Merge pull request kubevirt#8682 from fossedihelm/e2e_restore_cluster…
Browse files Browse the repository at this point in the history
…_conditions

e2e: restore cluster condition
  • Loading branch information
kubevirt-bot authored Oct 28, 2022
2 parents 91c29d5 + 8d5c091 commit 244a8ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:[email protected]][level:system
"There are no control-plane nodes in the cluster")

for _, node := range controlPlaneNodes.Items {
if node.Spec.Unschedulable == mode {
continue
}

nodeCopy := node.DeepCopy()
nodeCopy.Spec.Unschedulable = mode

Expand Down Expand Up @@ -3393,6 +3397,10 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:[email protected]][level:system
setControlPlaneUnschedulable(true)
})

AfterEach(func() {
setControlPlaneUnschedulable(false)
})

It("[test_id:6982]should migrate a VMI only one time", func() {
checks.SkipIfVersionBelow("Eviction of completed pods requires v1.13 and above", "1.13")

Expand Down

0 comments on commit 244a8ee

Please sign in to comment.