mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
apiextensions: adapt error tests to fixed validation messages
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
This commit is contained in:
parent
69b0699610
commit
f59a6c7810
@ -342,7 +342,7 @@ func TestValidateCustomResource(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
failingObjects: []failingObject{
|
failingObjects: []failingObject{
|
||||||
{object: map[string]interface{}{"field": "foo"}, expectErrs: []string{"field: Invalid value: \"\": field in body should match '+, but pattern is invalid: error parsing regexp: missing argument to repetition operator: `+`'"}},
|
{object: map[string]interface{}{"field": "foo"}, expectErrs: []string{"field: Invalid value: \"foo\": field in body should match '+, but pattern is invalid: error parsing regexp: missing argument to repetition operator: `+`'"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{name: "required field",
|
{name: "required field",
|
||||||
|
Loading…
Reference in New Issue
Block a user