Project

General

Profile

Actions

Task #846

closed
RA

Requirement #841: Parking APS:自動繳費機後端 API 與五家銀行折抵

任務:Parking APS 真實 API 測試與交付驗證

Task #846: 任務:Parking APS 真實 API 測試與交付驗證

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

Status:
Closed
Priority:
P1-High
Assignee:
-
Category:
Testing
Start date:
10/20/2026
Due date:
10/20/2026
% Done:

100%

Estimated time:
Story Points:

Description

工作內容

  • 撰寫 Supertest API 測試,不使用假回應。
  • 覆蓋五家銀行、付款、重置、錯誤碼與邊界。
  • 執行 test、typecheck、build。
  • 啟動真實 HTTP server 進行 smoke test。
  • 將結果寫回 Redmine Journal 與 Wiki。

RA Updated by Redmine Admin 5 days ago Actions #1

Task 建立並進入 In Progress:真實 API 測試、typecheck、build 與 HTTP smoke test。

RA Updated by Redmine Admin 5 days ago Actions #2

  • Status changed from In Progress to Closed

測試與交付驗證完成。

自動化測試

  • npm test:33/33 通過。
  • 測試檔案:parking-aps-server/test/parking.api.test.ts
  • 使用 Supertest 呼叫真實 Express app,涵蓋五家銀行、付款、重置與錯誤案例。

靜態與建置

  • npm run typecheck:通過。
  • npm run build:通過。
  • npm audit:0 vulnerabilities。

HTTP Smoke Test

  • GET 帳單:160 元未繳費。
  • 富邦 431195:折 80 元。
  • EASYCARD 付款 80 元:PAID_SUCCESS、gateRelease=true。
  • 重置:回到 160 元未繳費。
  • 玉山 808:折 40 元、剩 120 元。
  • 玉山 EASYCARD:5% 折 6 元、實付 114 元、開閘。

RA Updated by Redmine Admin 5 days ago Actions #3

最終程式碼清理與回歸:

  • 移除未使用的 ParkingStore.getByPlate。
  • 付款網關加入授權結果與金額一致性檢核。
  • npm run check:33/33、typecheck、build 通過。
  • HTTP smoke:查帳、玉山折抵、EASYCARD 付款、Reset 通過。
Actions

Also available in: PDF Atom