forked from cleveragents/cleveragents-core
97c1007bb5
Add TokenAuthMiddleware to emit AUTH_SUCCESS/AUTH_FAILURE with spec-aligned audit details and wire it through the DI container using server.token resolution. Add Behave and Robot coverage for auth event emission and end-to-end audit persistence, and update audit subscriber producer notes and changelog. ISSUES CLOSED: #714
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""Mock implementations for testing.
|
|
|
|
This package contains mock implementations used only during testing.
|
|
Following the mock placement rule, all mocks must exist only in the
|
|
features/ directory and never in production code (implementation_plan.md).
|
|
"""
|
|
|
|
from .fake_provider import FakeProviderInfo, FakeProviderRegistry
|
|
from .lsp_transport_mock import MockLspTransport, parse_lsp_responses
|
|
from .mock_ai_provider import MockAIProvider
|
|
from .mock_mcp_transport import MockMCPTransport
|
|
from .recording_event_bus import RecordingEventBus
|
|
from .transient_fail_audit_service import TransientFailAuditService
|
|
|
|
# NOTE: tdd_test_helpers is NOT re-exported here because it imports
|
|
# ``behave.model.Status`` which is unavailable in ASV benchmark
|
|
# environments. Import directly: ``from features.mocks.tdd_test_helpers
|
|
# import make_mock_scenario``
|
|
|
|
__all__ = [
|
|
"FakeProviderInfo",
|
|
"FakeProviderRegistry",
|
|
"MockAIProvider",
|
|
"MockLspTransport",
|
|
"MockMCPTransport",
|
|
"RecordingEventBus",
|
|
"TransientFailAuditService",
|
|
"parse_lsp_responses",
|
|
]
|