mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +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{
|
||||
{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",
|
||||
|
Loading…
Reference in New Issue
Block a user