Moved validation to the API side

This commit is contained in:
Bobby (Babak) Salamat
2018-02-07 15:30:26 -08:00
parent 1016d2d16a
commit 6bad08ab0c
5 changed files with 20 additions and 25 deletions

View File

@@ -53,6 +53,10 @@ func TestValidatePriorityClass(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{Name: "tier&1", Namespace: ""},
Value: 100,
},
"invalid system name": {
ObjectMeta: metav1.ObjectMeta{Name: scheduling.SystemPriorityClassPrefix + "test"},
Value: 100,
},
}
for k, v := range errorCases {