Files
novalon-manage-system/novalon-manage-api
张翔 22d5948994 test: add comprehensive unit tests for operation log feature
- Add IpUtilsTest with 9 test cases covering all IP extraction scenarios
- Add OperationLogAspectTest with 8 test cases covering all aspect behaviors
- Fix error handling in OperationLogAspect to prevent log failures from affecting main flow
- Add onErrorResume handlers for graceful degradation
- Ensure all tests pass (17/17, 100% pass rate)

Test Coverage:
- IP extraction from various sources (X-Forwarded-For, X-Real-IP, RemoteAddress)
- IPv6 to IPv4 conversion
- Reactive type support (Mono, Flux)
- Error handling and graceful degradation
- Parameter serialization and truncation
- Edge cases and boundary conditions
2026-04-03 20:42:10 +08:00
..