test(sec-10): add role-based authorization regression tests for trade…#227
Conversation
… state machine - Add micopay/backend/src/tests/tradeAuth.test.ts with 9 regression tests covering lockTrade (seller-only), revealTrade (seller-only), getTradeSecret (seller-only), completeTrade (buyer-only), and getTradeById (participants-only) guards - Add test:trade-auth npm script to micopay/backend/package.json - Add docs/security-reports/SEC-10-state-machine-regresion.md report All 9 tests pass. tsc build is clean. Closes ericmt-98#217
|
@ZuLu0890 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
¡Gracias por el trabajo en SEC-10! 🙏 Aclaración de alcance: actualizamos esta issue de auditoría para que la entrega sea únicamente el reporte ¿Podrías ajustar este PR para que deje solo el reporte Si prefieres, nos quedamos con tu reporte y movemos el código a un PR aparte. ¡Gracias! |
… state machine
All 9 tests pass. tsc build is clean.
Closes #217