Project

General

Profile

Actions

Requirement #801

closed
RA

JCIC Mock Server:建立可驗證的專業測試基準

Requirement #801: JCIC Mock Server:建立可驗證的專業測試基準

Added by Redmine Admin 6 days ago. Updated 6 days ago.

Status:
Closed
Priority:
P0-Urgent
Assignee:
-
Category:
-
Start date:
10/19/2026
Due date:
10/19/2026
% Done:

100%

Estimated time:
(Total: 0:00 h)
Story Points:

Description

原始訴求

針對 jcic-mock-server 進行功能巡檢,確認最低需求可執行,並補足專業上必要的
驗證、錯誤處理、測試與文件。不得留下骨架程式、空白路由或只有說明的假功能。

驗收條件

  • JSON/XML 查詢與 Accept 格式切換正常。
  • id_number 與 query_product 具備格式驗證。
  • 查無資料、未知路由、格式錯誤、Body 過大皆有一致的 JSON/XML 錯誤。
  • 提供 GET /health。
  • 自動化測試可重現正常與錯誤路徑。
  • README 與 docs/jcic-mock-server.md 和程式一致。
  • Mermaid 全部可渲染。

最終結果

  • npm test:21/21 通過。
  • Mermaid:5/5 渲染成功。
  • 完整過程與指令見 Wiki「今晚工作紀錄」。

Subtasks 7 (0 open — 7 closed)

CR #802: CR:新增 GET /health 與服務版本資訊Closed10/19/202610/19/2026

Actions
CR #803: CR:補強身分證格式、未知路由與 JSON/XML 一致錯誤Closed10/19/202610/19/2026

Actions
CR #804: CR:新增 21 個自動化測試與 npm testClosed10/19/202610/19/2026

Actions
CR #805: CR:同步 JCIC README 與 docs/jcic-mock-server.mdClosed10/19/202610/19/2026

Actions
Issue #806: 問題:JCIC 原先沒有自動化測試,且 app 未匯出以供測試啟動Closed10/19/202610/19/2026

Actions
Issue #807: 問題:非法 ID 與未知路由缺少一致錯誤格式Closed10/19/202610/19/2026

Actions
Issue #808: 問題:README 未反映 health、驗證規則與測試方式Closed10/19/202610/19/2026

Actions
Actions

Also available in: PDF Atom