feat: Add comprehensive testing suite and fix CI/CD pipeline
🧪 Testing Infrastructure: - Unit tests for authentication system with JWT validation - Integration tests for API endpoints and cluster management - End-to-end tests for complete workflows and performance - Test runner script with pytest configuration - pytest.ini with proper markers and settings 📚 Documentation: - mkdocs.yml configuration for GitHub Pages deployment - Professional documentation structure with Material theme - Navigation for installation, architecture, and examples �� CI/CD Pipeline Improvements: - Fixed .drone.yml with proper test execution stages - Added unit, integration, and e2e test steps - Security scanning with Bandit and Safety - Docker multi-stage builds for controller/agent - Documentation deployment to GitHub Pages - Performance testing and coverage reporting ✅ Test Coverage: - Authentication system: JWT tokens, HMAC signatures, encryption - Database operations: agent credentials, token management - API integration: endpoints, middleware, WebSocket - E2E workflows: registration, security incidents, monitoring - Performance benchmarks: concurrent auth, API throughput 🛡️ Quality Assurance: - Code linting with flake8, black, isort - Security vulnerability scanning - Container image security checks with Trivy - Dependency safety verification - Test coverage reporting with pytest-cov
This commit is contained in:
25
pytest.ini
Normal file
25
pytest.ini
Normal file
@@ -0,0 +1,25 @@
|
||||
[tool:pytest]
|
||||
testpaths = tests
|
||||
python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
addopts =
|
||||
-v
|
||||
--tb=short
|
||||
--strict-markers
|
||||
--disable-warnings
|
||||
--color=yes
|
||||
|
||||
markers =
|
||||
unit: Unit tests
|
||||
integration: Integration tests
|
||||
e2e: End-to-end tests
|
||||
slow: Slow tests
|
||||
auth: Authentication tests
|
||||
api: API tests
|
||||
cluster: Cluster management tests
|
||||
security: Security tests
|
||||
|
||||
filterwarnings =
|
||||
ignore::DeprecationWarning
|
||||
ignore::PendingDeprecationWarning
|
||||
Reference in New Issue
Block a user