Explorar el Código

Fix protobuf enum field type error message comparison test

Herman Slatman hace 2 años
padre
commit
55b097a8ec
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      authority/admin/api/webhook_test.go

+ 2 - 2
authority/admin/api/webhook_test.go

@@ -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.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(`
 			body := []byte(`
 			{
 			{
 				"name": "metadata",
 				"name": "metadata",