apiextensions: adapt error tests to fixed validation messages

Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
This commit is contained in:
Gautier Delorme 2020-10-27 14:20:38 +01:00 committed by Dr. Stefan Schimanski
parent 69b0699610
commit f59a6c7810

View File

@ -342,7 +342,7 @@ func TestValidateCustomResource(t *testing.T) {
},
},
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",