Orchestrata Ultimate › Tests › Reference › kernel › test_audit_logger

Tests reference — tests/kernel/test_audit_logger.py

Module of tests/kernel, split out because the directory page would be too large.

Prose pending.

tests/kernel/test_audit_logger.py

source · 61 tests · 1172 lines

Covers: kernel.audit_logger

Kind Name Line Description
function test_audit_event_type_values 112
function test_audit_outcome_values 118
function test_audit_entry_defaults 129
function test_audit_entry_to_dict 144
function test_audit_entry_to_dict_no_outcome 158
function test_audit_entry_from_dict 172
function test_audit_entry_from_dict_no_outcome 187
function test_audit_entry_round_trip 204
function test_audit_log_config_defaults 226
function test_audit_log_config_custom 243
function test_redis_audit_queue_defaults 254
function test_redis_audit_queue_default_key_is_not_shared 266 Two default queues must not drain each other.
function test_redis_audit_queue_custom 285
function test_redis_audit_queue_connect_no_redis 299 connect() is a no-op when redis is unavailable.
function test_redis_audit_queue_enqueue_no_client 307
function test_redis_audit_queue_dequeue_no_client 322
function test_redis_audit_queue_close_no_client 329
function test_audit_log_writer_write_raises 341
function test_audit_log_writer_write_batch 356 write_batch delegates to write and counts successes.
function test_audit_log_writer_write_batch_partial_failure 374
function test_audit_log_writer_close_is_noop 394
function test_file_audit_writer_creates_log_dir 405
function test_file_audit_writer_write 412
function test_file_audit_writer_write_masks_sensitive 426
function test_file_audit_writer_rotation_by_size 457
function test_file_audit_writer_compress_file 486
function test_file_audit_writer_cleanup_old_logs 504
function test_file_audit_writer_close_releases_handle 520
function test_graph_audit_writer_write_no_driver 542
function test_graph_audit_writer_close_no_driver 562
function test_audit_logger_construction 573
function test_audit_logger_start_stop 582
function test_audit_logger_stop_idempotent 593
function test_audit_logger_start_idempotent 601
function test_log_message_routing 614
function test_log_policy_query 635
function test_log_escalation 653
function test_log_escalation_resolved 672
function test_log_session_lifecycle 691
function test_log_resource_event 714
function test_log_workflow_event 740
function test_log_volk_lifecycle 772
function test_query_by_volk 803
function test_query_by_event_type 821
function test_query_by_correlation_id 846
function test_query_by_time_range 865
function test_search_logs 886
function test_aggregate_logs 906
function test_export_logs_json 939
function test_export_logs_csv 958
function test_export_logs_unsupported_format 978
function test_export_logs_to_path 986
function test_generate_audit_report 1006
function test_backup_and_restore_logs 1046
function test_backup_logs_failure 1081
function test_utc_now 1095
function test_flush_buffer_to_writers 1107
function test_flush_loop_runs 1124
function test_query_empty_logs 1138
function test_query_by_event_type_no_match 1146
function test_log_without_start 1163 Logging without start should still buffer entries.