diff --git a/pkg/engine/validation_test.go b/pkg/engine/validation_test.go index a7a036bedc..5a77d81b69 100644 --- a/pkg/engine/validation_test.go +++ b/pkg/engine/validation_test.go @@ -294,7 +294,7 @@ func TestValidate_Fail_anyPattern(t *testing.T) { resourceUnstructured, err := utils.ConvertToUnstructured(rawResource) assert.NilError(t, err) er := Validate(PolicyContext{Policy: policy, NewResource: *resourceUnstructured}) - msgs := []string{"Validation rule 'check-default-namespace' has failed"} + msgs := []string{"A namespace is required"} for index, r := range er.PolicyResponse.Rules { assert.Equal(t, r.Message, msgs[index]) }