test(chartutil): Update error message in schema validation test

- Refine expected error message for the `TestValidateAgainstSchemaNegative` test
- Provides clearer feedback by specifying an incomplete integer value error instead of a generic missing field error

Signed-off-by: Jiří Altman <jiri.altman@usu.com>
pull/13236/head
Jiří Altman 12 months ago
parent b6561ab653
commit 7f495d678a
No known key found for this signature in database
GPG Key ID: 4196236CCD429956

@ -159,7 +159,7 @@ func TestValidateAgainstSchemaNegative(t *testing.T) {
}
expectedErrString := `subchart:
- (root): age is required
age: incomplete value >=0 & int
`
if errString != expectedErrString {
t.Errorf("Error string :\n`%s`\ndoes not match expected\n`%s`", errString, expectedErrString)

Loading…
Cancel
Save