You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g.Expect(machineList.Items).ToNot(BeEmpty(), "No machines found for cluster %s", input.Name)
501
-
502
-
for_, machine:=rangemachineList.Items {
503
-
readyConditionFound:=false
504
-
for_, condition:=rangemachine.Status.Conditions {
505
-
ifcondition.Type==clusterv1.ReadyCondition {
506
-
readyConditionFound=true
507
-
g.Expect(condition.Status).To(Equal(metav1.ConditionTrue), "The Ready condition on Machine %q should be set to true; message: %s", machine.Name, condition.Message)
508
-
g.Expect(condition.Message).To(BeEmpty(), "The Ready condition on Machine %q should have an empty message", machine.Name)
509
-
break
510
-
}
499
+
}, 5*time.Minute, 10*time.Second).Should(Succeed(), "Failed to list Machines to check the Ready condition for Cluster %s", klog.KRef(input.Namespace, input.Name))
500
+
501
+
Expect(machineList.Items).ToNot(BeEmpty(), "No machines found for cluster %s", input.Name)
502
+
for_, machine:=rangemachineList.Items {
503
+
readyConditionFound:=false
504
+
for_, condition:=rangemachine.Status.Conditions {
505
+
ifcondition.Type==clusterv1.ReadyCondition {
506
+
readyConditionFound=true
507
+
Expect(condition.Status).To(Equal(metav1.ConditionTrue), "The Ready condition on Machine %q should be set to true; message: %s", machine.Name, condition.Message)
508
+
Expect(condition.Message).To(BeEmpty(), "The Ready condition on Machine %q should have an empty message", machine.Name)
509
+
break
511
510
}
512
-
g.Expect(readyConditionFound).To(BeTrue(), "Machine %q should have a Ready condition", machine.Name)
513
511
}
514
-
}, 5*time.Minute, 10*time.Second).Should(Succeed(), "Failed to verify Machines Ready condition for Cluster %s", klog.KRef(input.Namespace, input.Name))
512
+
Expect(readyConditionFound).To(BeTrue(), "Machine %q should have a Ready condition", machine.Name)
0 commit comments