From 7f495d678acf0a268809c6d496c1339be64547b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Altman?= Date: Sat, 5 Oct 2024 09:30:31 +0200 Subject: [PATCH] test(chartutil): Update error message in schema validation test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- pkg/chartutil/jsonschema_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/jsonschema_test.go b/pkg/chartutil/jsonschema_test.go index 7610db337..2e3958b94 100644 --- a/pkg/chartutil/jsonschema_test.go +++ b/pkg/chartutil/jsonschema_test.go @@ -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)