copilot-swe-agent[bot]
bc435ed8cb
feat(tests): add comprehensive test coverage for 6 modules (part 1)
...
- Enhanced test_upload_email.py: Added 20+ tests for email upload task (get_email_template, extract_metadata, attach_logo, prepare_recipients, send_email, upload_to_email)
- Enhanced test_api_settings.py: Added 10+ tests for settings API endpoints and models
- Created test_upload_google_drive.py: Added 25+ tests for Google Drive upload (OAuth, service account, metadata, truncation)
- Enhanced test_views_settings.py: Added 15+ tests for settings view and admin access
- Enhanced test_upload_ftp_additional.py: Added 18+ tests for FTP upload (FTPS, plaintext, directory creation, error handling)
- Enhanced test_security_headers.py: Added 12+ tests for security headers middleware
- Enhanced test_check_credentials.py: Added 15+ tests for credential checking task
- Enhanced test_views_status.py: Added 15+ tests for status dashboard and env debug views
Target: Reach ≥80% coverage for 9 modules
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-13 11:34:02 +00:00
copilot-swe-agent[bot]
e144fdd50a
feat(security): add configurable security headers middleware
...
- Add SecurityHeadersMiddleware with HSTS, CSP, X-Frame-Options, X-Content-Type-Options
- Add configuration options in app/config.py
- Integrate middleware into app/main.py
- Add comprehensive tests in tests/test_security_headers.py
- Update .env.demo with security header examples
- Update docs/DeploymentGuide.md with security headers section and Traefik/Nginx examples
- Update docs/ConfigurationGuide.md with detailed configuration reference
- Update SECURITY_AUDIT.md to mark security headers implementation complete
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-10 14:05:19 +00:00