italia/developers-italia-api

Webhooks and catalogs lack DB persistence checks for write endpoints

Open

#384 创建于 2026年5月10日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (8 fork)auto 404
good first issue

仓库指标

Star
 (16 star)
PR 合并指标
 (PR 指标待抓取)

描述

Most resources have endpoint tests that only verify the HTTP response, not what actually lands in the database. POST and PATCH can return 200 with the right body and still write the wrong row, and DELETE can return 204 without removing anything.

logs, publishers and software already have TestXxxPostDBChecks, TestXxxPatchDBChecks and TestXxxDeleteDBChecks (in #294 and follow-ups). Two resources are still missing equivalent coverage:

  • webhooks: no DB persistence checks for POST, PATCH or DELETE
  • catalogs: existing checks cover only catalog_sources and DELETE, nothing asserts that POST or PATCH actually persist name, alternativeId or publishersNamespace on the catalog row itself

贡献者指南