Adds test coverage for issues #002, #003, #004: - TestUpdateSpan_MaintenanceModeError: Verifies ERR-TELEMETRY-010 logging - TestUpdateSpan_UptimeSpanQueryError: Verifies ERR-TELEMETRY-011 logging - TestSendKumaPush_DatabaseError: Verifies ERR-TELEMETRY-033 logging - TestSendKumaPush_NetworkError: Verifies ERR-TELEMETRY-030 logging - TestSendKumaPush_NonOKStatus: Verifies ERR-TELEMETRY-031 logging - TestTarpit_EarlyDisconnect: Verifies tarpit handles client disconnect - TestErrorCodes_Unique: Verifies all error codes are unique (caught duplicates!) - TestErrorCodes_Format: Verifies error message format compliance - TestHandleTelemetry_DatabaseInsertError: Verifies ERR-TELEMETRY-004 - TestConcurrentErrorHandling: Verifies thread-safe error logging Also fixes duplicate error codes found by tests: - ERR-TELEMETRY-010 -> ERR-TELEMETRY-015 for maintenance table creation - Added ERR-TELEMETRY-034 for Kuma response body close after non-OK status fixes #002 fixes #003 fixes #004 Author: Shakib <shakib-20250409-001> |
||
|---|---|---|
| .. | ||
| CLAUDE.md | ||
| clavis-telemetry | ||
| error_handling_test.go | ||
| go.mod | ||
| go.sum | ||
| kuma.go | ||
| main.go | ||
| main_test.go | ||
| metrics.go | ||