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
[release-1.11] 🌱 e2e: use wait-machine-upgrade timeout in ClusterClassChanges tests to wait for machines to be ready (#13022)
* e2e: use wait-machine-upgrade timeout in ClusterClassChanges tests to wait for machines to be ready
* bump for netlify
---------
Co-authored-by: Christian Schlotter <[email protected]>
g.Expect(machineList.Items).ToNot(BeEmpty(), "No machines found for cluster %s", input.Name)
117
+
118
+
for_, machine:=rangemachineList.Items {
119
+
readyConditionFound:=false
120
+
for_, condition:=rangemachine.Status.Conditions {
121
+
ifcondition.Type==clusterv1.ReadyCondition {
122
+
readyConditionFound=true
123
+
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)
124
+
g.Expect(condition.Message).To(BeEmpty(), "The Ready condition on Machine %q should have an empty message", machine.Name)
125
+
break
126
+
}
127
+
}
128
+
g.Expect(readyConditionFound).To(BeTrue(), "Machine %q should have a Ready condition", machine.Name)
129
+
}
130
+
}, intervals...).Should(Succeed(), "Failed to wait for Machines Ready condition for Cluster %s", klog.KRef(input.Namespace, input.Name))
0 commit comments