| title | Testing Strategy |
|---|---|
| description | Unit and Integration testing strategy for IDP-Core |
- Scope: Domain logic, Services, Mappers.
- Tool: JUnit 5 testing framework with Mockito library.
- Rule: Mock all external dependencies (Repositories).
- Scope: Controllers, Repositories, Database constraints.
- Tool: Testcontainers library for PostgreSQL database.
- Rule: Spin up a real database. Test the full HTTP request/response cycle.
- API Tests: Verify HTTP status codes and JSON bodies.
- Domain Tests: Verify business rules and invariants.
- Security Tests: Verify auth/authz and API vulnerabilities (DAST).
- Scope: API security scanning, vulnerability detection.
- Tool: OWASP ZAP via Testcontainers for Dynamic Application Security Testing.
- Rule: Run on demand via the
/run-owasp-zapPR comment orworkflow_dispatch(not part of the default test suite).
→ See OWASP ZAP Security Scanning for complete details.