Adapt error of invalid json schema with the new expected output

Closes: https://github.com/helm/helm/pull/30907

To be able to upgrade to v6.0.2 for jsonschema lib we need to upgrade
this test.

I am wondering if it's related to this commit:
86cca28795

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/30914/head
Benoit Tigeot 4 months ago
parent 6638935d74
commit b2fd91b8d0
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -55,8 +55,8 @@ func TestValidateAgainstInvalidSingleSchema(t *testing.T) {
errString = err.Error()
}
expectedErrString := "unable to validate schema: runtime error: invalid " +
"memory address or nil pointer dereference"
expectedErrString := `"file:///values.schema.json#" is not valid against metaschema: jsonschema validation failed with 'https://json-schema.org/draft/2020-12/schema#'
- at '': got number, want boolean or object`
if errString != expectedErrString {
t.Errorf("Error string :\n`%s`\ndoes not match expected\n`%s`", errString, expectedErrString)
}

Loading…
Cancel
Save