Merge pull request #125949 from jeffinkottaram/fix-status-patch-test
Fix `should complete a service status lifecycle` test
This commit is contained in:
		| @@ -3519,7 +3519,7 @@ var _ = common.SIGDescribe("Services", func() { | ||||
| 					svc.ObjectMeta.Namespace == ns && | ||||
| 					svc.Annotations["patchedstatus"] == "true" | ||||
| 				if !found { | ||||
| 					framework.Logf("Observed Service %v in namespace %v with annotations: %v & Conditions: %v", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace, svc.Annotations, svc.Status.LoadBalancer) | ||||
| 					framework.Logf("Observed Service %v in namespace %v with annotations: %v & Conditions: %v", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace, svc.Annotations, svc.Status.Conditions) | ||||
| 					return false, nil | ||||
| 				} | ||||
| 				for _, cond := range svc.Status.Conditions { | ||||
| @@ -3528,12 +3528,11 @@ var _ = common.SIGDescribe("Services", func() { | ||||
| 						cond.Message == "Set from e2e test" { | ||||
| 						framework.Logf("Found Service %v in namespace %v with annotations: %v & Conditions: %v", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace, svc.Annotations, svc.Status.Conditions) | ||||
| 						return found, nil | ||||
| 					} else { | ||||
| 						framework.Logf("Observed Service %v in namespace %v with annotations: %v & Conditions: %v", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace, svc.Annotations, svc.Status.LoadBalancer) | ||||
| 					} | ||||
| 				} | ||||
| 				framework.Logf("Observed Service %v in namespace %v with annotations: %v & Conditions: %v", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace, svc.Annotations, svc.Status.Conditions) | ||||
| 				return false, nil | ||||
| 			} | ||||
| 				} | ||||
| 			} | ||||
| 			framework.Logf("Observed event: %+v", event.Object) | ||||
| 			return false, nil | ||||
| 		}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot