From 120744bf44f7e230af13e0b269228c2d1cf3d2dd Mon Sep 17 00:00:00 2001 From: Kermit Alexander Date: Tue, 7 Jun 2022 16:31:41 +0000 Subject: [PATCH] Change case on syntax error check. --- test/e2e/apimachinery/crd_validation_rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/crd_validation_rules.go b/test/e2e/apimachinery/crd_validation_rules.go index d735477bd2b..0b0f53cd8d9 100644 --- a/test/e2e/apimachinery/crd_validation_rules.go +++ b/test/e2e/apimachinery/crd_validation_rules.go @@ -183,7 +183,7 @@ var _ = SIGDescribe("CustomResourceValidationRules [Privileged:ClusterAdmin][Alp crd := fixtures.NewRandomNameV1CustomResourceDefinitionWithSchema(v1.NamespaceScoped, schemaWithSyntaxErrorRule, false) _, err := fixtures.CreateNewV1CustomResourceDefinitionWatchUnsafe(crd, apiExtensionClient) framework.ExpectError(err, "creating a CustomResourceDefinition with a validation rule that contains a syntax error") - expectedErrMsg := "syntax error" + expectedErrMsg := "Syntax error" if !strings.Contains(err.Error(), expectedErrMsg) { framework.Failf("expected error message to contain %q, got %q", expectedErrMsg, err.Error()) }