From 55b097a8ec6cceed5b9ae4edf6daca6db5d00f87 Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Tue, 8 Oct 2024 10:46:47 +0200 Subject: [PATCH] Fix protobuf enum field type error message comparison test --- authority/admin/api/webhook_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/admin/api/webhook_test.go b/authority/admin/api/webhook_test.go index 8f4ee1a2..aa8d6f83 100644 --- a/authority/admin/api/webhook_test.go +++ b/authority/admin/api/webhook_test.go @@ -186,8 +186,8 @@ func TestWebhookAdminResponder_CreateProvisionerWebhook(t *testing.T) { Name: "provName", } ctx := linkedca.NewContextWithProvisioner(context.Background(), prov) - adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum type: "UNSUPPORTED"`) - adminErr.Message = `(line 5:13): invalid value for enum type: "UNSUPPORTED"` + adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`) + adminErr.Message = `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"` body := []byte(` { "name": "metadata",