Fix protobuf enum field type error message comparison test

This commit is contained in:
Herman Slatman 2024-10-08 10:46:47 +02:00
parent ebcb6a1d17
commit 55b097a8ec
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

View File

@ -186,8 +186,8 @@ func TestWebhookAdminResponder_CreateProvisionerWebhook(t *testing.T) {
Name: "provName", Name: "provName",
} }
ctx := linkedca.NewContextWithProvisioner(context.Background(), prov) ctx := linkedca.NewContextWithProvisioner(context.Background(), prov)
adminErr := admin.NewError(admin.ErrorBadRequestType, `(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 type: "UNSUPPORTED"` adminErr.Message = `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`
body := []byte(` body := []byte(`
{ {
"name": "metadata", "name": "metadata",