Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
All services: admin-v2, studio-v2, website, ai-compliance-sdk, consent-service, klausur-service, voice-service, and infrastructure. Large PDFs and compiled binaries excluded via .gitignore.
130 lines
2.7 KiB
Python
130 lines
2.7 KiB
Python
"""
|
|
Test Registry Module
|
|
|
|
Zentrale API fuer das Test-Dashboard.
|
|
Entdeckt, registriert und fuehrt Tests aus allen Services aus.
|
|
|
|
Phase 1 Update (2026-02-02):
|
|
- PostgreSQL-Integration fuer persistente Speicherung
|
|
- Backlog-Management mit Status-Workflow
|
|
- Historie und Trends ueber Zeit
|
|
|
|
Modular Refactoring (2026-02-03):
|
|
- Split into sub-modules for maintainability
|
|
"""
|
|
|
|
# Re-export the router for FastAPI
|
|
from .routes import router
|
|
|
|
# Re-export config for external access
|
|
from .config import (
|
|
PROJECT_ROOT,
|
|
RUN_MODE,
|
|
DATA_DIR,
|
|
RESULTS_FILE,
|
|
check_go_available,
|
|
check_pytest_available,
|
|
get_go_version,
|
|
get_pytest_version,
|
|
load_persisted_results,
|
|
save_persisted_results,
|
|
migrate_json_to_postgres,
|
|
is_postgres_available,
|
|
get_persisted_results,
|
|
get_test_runs,
|
|
get_current_runs,
|
|
get_running_tests,
|
|
)
|
|
|
|
# Re-export API models
|
|
from .api_models import (
|
|
TestRunRequest,
|
|
TestRunResponse,
|
|
RegistryResponse,
|
|
BacklogStatusUpdate,
|
|
BacklogPriorityUpdate,
|
|
FixAttempt,
|
|
ManualBacklogEntry,
|
|
CIResultRequest,
|
|
)
|
|
|
|
# Re-export discovery functions
|
|
from .discovery import (
|
|
discover_go_tests,
|
|
discover_python_tests,
|
|
discover_bqas_tests,
|
|
build_service_info,
|
|
)
|
|
|
|
# Re-export executors
|
|
from .executors import (
|
|
run_go_tests,
|
|
run_python_tests,
|
|
run_bqas_tests,
|
|
run_jest_tests,
|
|
run_playwright_tests,
|
|
run_tests_in_container,
|
|
execute_test_run,
|
|
)
|
|
|
|
# Re-export services
|
|
from .services import (
|
|
extract_go_error,
|
|
classify_go_error,
|
|
suggest_go_fix,
|
|
extract_pytest_error,
|
|
classify_pytest_error,
|
|
suggest_pytest_fix,
|
|
)
|
|
|
|
__all__ = [
|
|
# Router
|
|
"router",
|
|
# Config
|
|
"PROJECT_ROOT",
|
|
"RUN_MODE",
|
|
"DATA_DIR",
|
|
"RESULTS_FILE",
|
|
"check_go_available",
|
|
"check_pytest_available",
|
|
"get_go_version",
|
|
"get_pytest_version",
|
|
"load_persisted_results",
|
|
"save_persisted_results",
|
|
"migrate_json_to_postgres",
|
|
"is_postgres_available",
|
|
"get_persisted_results",
|
|
"get_test_runs",
|
|
"get_current_runs",
|
|
"get_running_tests",
|
|
# API Models
|
|
"TestRunRequest",
|
|
"TestRunResponse",
|
|
"RegistryResponse",
|
|
"BacklogStatusUpdate",
|
|
"BacklogPriorityUpdate",
|
|
"FixAttempt",
|
|
"ManualBacklogEntry",
|
|
"CIResultRequest",
|
|
# Discovery
|
|
"discover_go_tests",
|
|
"discover_python_tests",
|
|
"discover_bqas_tests",
|
|
"build_service_info",
|
|
# Executors
|
|
"run_go_tests",
|
|
"run_python_tests",
|
|
"run_bqas_tests",
|
|
"run_jest_tests",
|
|
"run_playwright_tests",
|
|
"run_tests_in_container",
|
|
"execute_test_run",
|
|
# Services
|
|
"extract_go_error",
|
|
"classify_go_error",
|
|
"suggest_go_fix",
|
|
"extract_pytest_error",
|
|
"classify_pytest_error",
|
|
"suggest_pytest_fix",
|
|
]
|