tests, infra: Replace BeforeAll with BeforeEach
The BeforeAll at infra_test is creating the VMs only once now that the
VMs get removed at AfterEach they need to be created before every test
at BeforeEach.
@@ -689,7 +689,11 @@ var _ = Describe("[Serial][sig-compute]Infrastructure", func() {
return nodeName
}
- tests.DeprecatedBeforeAll(func() {
+ BeforeEach(func() {
+ preparedVMIs = []*v1.VirtualMachineInstance{}
+ pod = nil
+ handlerMetricIPs = []string{}
+ controllerMetricIPs = []string{}
By("Finding the virt-controller prometheus endpoint")
virtControllerLeaderPodName := getLeader()
