mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-14 04:07:46 +00:00
fixup! fixup! fixup! fixup! Weekend fun with further optimisations.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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
|
||||
Reference in New Issue
Block a user