Orchestrata Ultimate › Tests › Reference › session › test_kernel_session
Tests reference — tests/session/test_kernel_session.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_kernel_session.py
source · 31 tests · 817 lines
Tests for Session Management in Orchestration Kernel.
Covers: core.base.traces, kernel.session_context, kernel.session_manager, core.packet/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_user_id |
71 | Generate unique test user ID. |
| function | test_create_session_with_unique_id |
101 | Test creating session with unique UUID (REQ-001-US-004-001). |
| function | test_create_session_with_metadata |
119 | Test creating session with metadata (REQ-001-US-004-001, REQ-001-US-004-010). |
| function | test_resume_session_from_redis |
137 | Test resuming session from Redis (REQ-001-US-004-002, REQ-001-US-004-009). |
| function | test_close_session_marks_inactive |
155 | Test closing session marks it inactive (REQ-001-US-004-003). |
| function | test_archive_session_to_neo4j |
172 | Test archiving session to the graph (REQ-001-US-004-004). |
| function | test_get_active_sessions_by_user |
196 | Test getting active sessions for user (REQ-001-US-004-005). |
| function | test_query_session_history |
216 | Test querying session history from the graph (REQ-001-US-004-007). |
| function | test_delete_expired_sessions |
234 | Test deleting expired sessions (REQ-001-US-004-006, REQ-001-US-004-008). |
| function | test_session_ttl_expiration |
260 | Test session TTL expiration (REQ-001-US-004-008). |
| function | test_session_persistence_across_restarts |
290 | Test session persists across manager restarts (REQ-001-US-004-009). |
| function | test_set_context_variable |
326 | Test setting context variable (REQ-001-US-004-011). |
| function | test_get_context_with_default |
341 | Test getting context with default value (REQ-001-US-004-012). |
| function | test_update_context_atomically |
354 | Test atomic context update (REQ-001-US-004-013). |
| function | test_delete_context_key |
376 | Test deleting context key (REQ-001-US-004-014). |
| function | test_clear_all_context |
392 | Test clearing all context (REQ-001-US-004-015). |
| function | test_inject_context_into_cxp_packet |
409 | Test injecting context into CXP packet (REQ-001-US-004-016). |
| function | test_extract_context_from_cxp_packet |
434 | Test extracting context from CXP packet (REQ-001-US-004-017). |
| function | test_validate_context_schema |
459 | Test context schema validation (REQ-001-US-004-018). |
| function | test_serialize_context_for_storage |
481 | Test context serialization (REQ-001-US-004-019). |
| function | test_deserialize_context_from_storage |
500 | Test context deserialization (REQ-001-US-004-020). |
| function | test_context_thread_safety |
528 | Test context operations are thread-safe. |
| function | test_context_edge_cases |
567 | Test context edge cases. |
| function | test_route_message_within_session |
597 | Test routing message within session (REQ-001-US-004-021). |
| function | test_prevent_cross_session_leakage |
624 | Test preventing cross-session leakage (REQ-001-US-004-022, REQ-001-US-004-027). |
| function | test_session_specific_volk_instances |
649 | Test session-specific Volk instances (REQ-001-US-004-023). |
| function | test_broadcast_to_session_volks |
677 | Test broadcasting to session Volks (REQ-001-US-004-024, REQ-001-US-004-026). |
| function | test_query_active_volks_for_session |
711 | Test querying active Volks for session (REQ-001-US-004-025). |
| function | test_session_scoped_multicast |
731 | Test session-scoped multicast (REQ-001-US-004-026). |
| function | test_session_isolation_validation |
758 | Test session isolation validation (REQ-001-US-004-027). |
| function | test_session_routing_metrics |
787 | Test session routing metrics (REQ-001-US-004-028). |