Files
Zumri-Backend/scripts/smoke-test.js
T
Sathira Sri Sathara 5158c52db5
CI / test (push) Successful in 10m56s
CI / test (pull_request) Successful in 11m1s
feat: Add Phase 11 analytics and production readiness features
- Introduced new endpoints for account overview, analytics, and metrics.
- Implemented authorization matrix and backup/restore documentation.
- Added smoke test script and updated package dependencies.
- Created detailed production checklist and runbook for deployment.
- Established cron operations and notification event matrix documentation.
- Enhanced security and validation audits for analytics and metrics services.
- Added unit tests for analytics and metrics functionalities.
2026-09-16 10:59:19 +05:30

2 lines
552 B
JavaScript

const base=(process.env.SMOKE_BASE_URL||"http://127.0.0.1:3070").replace(/\/$/,"");const checks=["/health/live","/health/ready","/api/v1/products?limit=1","/api/v1/help/categories","/api/v1/banners/current"];(async()=>{let failed=0;for(const path of checks){try{const r=await fetch(base+path,{signal:AbortSignal.timeout(10000)});const ok=r.ok||(path==="/health/ready"&&r.status===503);console.log(`${ok?"PASS":"FAIL"} ${path} ${r.status}`);if(!ok)failed++;}catch(e){console.log(`FAIL ${path} ${e.message}`);failed++;}}process.exitCode=failed?1:0;})();