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
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add api.MinimalNameRequirements to your name validator..", illegalName, apiType.Elem(), errList)
61
+
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add validation.ValidatePathSegmentName to your name validator..", illegalName, apiType.Elem(), errList)
// this message is from a stock name validation method in kube that covers our requirements in MinimalNameRequirements
75
+
// this message is from a stock name validation method in kube that covers our requirements in ValidatePathSegmentName
77
76
ifvalidationError.Detail==nameRulesMessage {
78
77
foundExpectedError=true
79
78
break
80
79
}
81
80
}
82
81
83
82
if!foundExpectedError {
84
-
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add api.MinimalNameRequirements to your name validator.", illegalName, apiType.Elem(), errList)
83
+
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add validation.ValidatePathSegmentName to your name validator.", illegalName, apiType.Elem(), errList)
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add api.MinimalNameRequirements to your name validator.", illegalName, apiType.Elem(), errList)
98
+
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add validation.ValidatePathSegmentName to your name validator.", illegalName, apiType.Elem(), errList)
// this message is from a stock name validation method in kube that covers our requirements in MinimalNameRequirements
113
+
// this message is from a stock name validation method in kube that covers our requirements in ValidatePathSegmentName
115
114
ifvalidationError.Detail==nameRulesMessage {
116
115
foundExpectedError=true
117
116
break
118
117
}
119
118
}
120
119
121
120
if!foundExpectedError {
122
-
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add api.MinimalNameRequirements to your name validator.", illegalName, apiType.Elem(), errList)
121
+
t.Errorf("expected error for %v in %v not found amongst %v. You probably need to add validation.ValidatePathSegmentName to your name validator.", illegalName, apiType.Elem(), errList)
t.Errorf("expected errors %v in %v not found amongst %v. You probably need to call kube/validation.ValidateObjectMeta in your validator.", requiredErrors, apiType.Elem(), errList)
0 commit comments