feat(tests): Implement ERR-02 Invalid Sequence Handling and update test migration documentation
This commit is contained in:
@@ -92,7 +92,7 @@ Tests for proper error handling and recovery.
|
||||
| Test ID | Source File | Destination File | Status | Tests | Notes |
|
||||
|---------|-------------|------------------|--------|-------|-------|
|
||||
| **ERR-01** | (dcrouter ERR-01 tests) | `test/suite/smtpserver_error-handling/test.err-01.syntax-errors.test.ts` | **✅ Ported** | 10/10 | Invalid commands, missing brackets, wrong sequences, long commands, malformed addresses |
|
||||
| ERR-02 | TBD | `test/suite/smtpserver_error-handling/test.err-02.sequence-errors.test.ts` | 📋 Planned | - | Out-of-order commands |
|
||||
| **ERR-02** | (dcrouter ERR-02 tests) | `test/suite/smtpserver_error-handling/test.err-02.invalid-sequence.test.ts` | **✅ Ported** | 10/10 | MAIL before EHLO, RCPT before MAIL, DATA before RCPT, multiple EHLO, commands after QUIT, sequence recovery |
|
||||
| ERR-05 | TBD | `test/suite/smtpserver_error-handling/test.err-05.resource-exhaustion.test.ts` | 📋 Planned | - | Memory/connection limits |
|
||||
| ERR-07 | TBD | `test/suite/smtpserver_error-handling/test.err-07.exception-handling.test.ts` | 📋 Planned | - | Unexpected errors, crashes |
|
||||
|
||||
@@ -146,9 +146,9 @@ Tests for RFC 5321/5322 compliance.
|
||||
|
||||
### Overall Statistics
|
||||
- **Total test files identified**: ~100+
|
||||
- **Files ported**: 10/100+ (10%)
|
||||
- **Total tests ported**: 72/~500+ (14%)
|
||||
- **Tests passing**: 72/72 (100%)
|
||||
- **Files ported**: 11/100+ (11%)
|
||||
- **Total tests ported**: 82/~500+ (16%)
|
||||
- **Tests passing**: 82/82 (100%)
|
||||
|
||||
### By Priority
|
||||
|
||||
@@ -169,9 +169,9 @@ Tests for RFC 5321/5322 compliance.
|
||||
- 📋 SEC-08: Rate Limiting
|
||||
- 📋 SEC-10: Header Injection
|
||||
- ✅ ERR-01: Syntax Errors (10 tests)
|
||||
- 📋 ERR-02: Sequence Errors
|
||||
- ✅ ERR-02: Invalid Sequence (10 tests)
|
||||
|
||||
**Phase 2 Progress**: 2/6 complete (33%)
|
||||
**Phase 2 Progress**: 3/6 complete (50%)
|
||||
|
||||
#### Medium Priority (Phase 3: Advanced Features)
|
||||
- 📋 SEC-03: DKIM
|
||||
|
||||
Reference in New Issue
Block a user