fixup! Enhance test coverage.

This commit is contained in:
2025-09-17 13:54:11 +01:00
parent 397efdae0f
commit 83684ce51d
5 changed files with 558 additions and 173 deletions
+7 -36
View File
@@ -1,38 +1,9 @@
package security
import (
"testing"
)
// TestSecurityFeatures consolidates all security-related tests
// Due to the large size of these tests (2355+ lines), they remain in their original files
// but are organized here for logical grouping
func TestSecurityFeatures(t *testing.T) {
t.Run("Security_Monitoring", func(t *testing.T) {
// Tests from security_monitoring_test.go
// - Rate limiting
// - Suspicious activity detection
// - Security metrics tracking
t.Skip("Run original security_monitoring_test.go")
})
t.Run("Security_Edge_Cases", func(t *testing.T) {
// Tests from security_edge_cases_test.go
// - Token validation edge cases
// - Session security boundaries
// - Attack vector prevention
t.Skip("Run original security_edge_cases_test.go")
})
t.Run("CSRF_Session_Protection", func(t *testing.T) {
// Tests from csrf_session_test.go
// - CSRF token generation and validation
// - Session hijacking prevention
// - Cross-origin request protection
t.Skip("Run original csrf_session_test.go")
})
}
// Note: The original test files contain comprehensive security tests
// They should be kept as-is due to their complexity and importance
// This file serves as an organizational index for security testing
// This file was redundant as it only referenced existing comprehensive test files:
// - security_monitoring_test.go
// - security_edge_cases_test.go
// - csrf_session_test.go
//
// These original test files are comprehensive and should be run directly.
// This organizational index file has been removed to eliminate redundant skipped tests.