Orchestrata Ultimate › Tests › Reference › test_core

Tests reference — tests/test_core.py

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

Prose pending.

tests/test_core.py

source · 134 tests · 1279 lines

Tests for orchestrata_ultimate.core module.

Covers: core.graph_directives, core.interfaces.volk, core.logging, core.lru_cache, core.monitoring.engine, core.monitoring.spans, core.redis_factory, core.standards, core.tracing.scanner, core.tracing.traceability, core.base/ (package), core.config/ (package), core.enums/ (package), core.interfaces/ (package), core.monitoring/ (package), core.state/ (package)

Kind Name Line Description
function test_base_entity_creates_with_uuid 121
function test_base_entity_ids_are_unique 127
function test_base_entity_timestamps_are_utc 133
function test_base_entity_touch_updates_updated_at 139
function test_base_entity_equality_by_id 147
function test_base_entity_inequality_different_ids 154
function test_base_entity_hashable_and_usable_in_set 160
function test_base_entity_to_dict_contains_all_fields 167
function test_base_entity_to_dict_timestamps_are_iso_strings 177
function test_base_entity_from_dict_round_trip 184
function test_base_entity_repr_contains_class_and_id 192
function test_base_entity_not_equal_to_non_entity 199
function test_base_error_basic_construction 209
function test_base_error_with_code 216
function test_base_error_without_code_str 222
function test_base_error_context_dict 227
function test_base_error_timestamp_is_utc 233
function test_base_error_to_dict_structure 238
function test_base_error_cause_chain_in_to_dict 248
function test_base_error_is_exception 258
function test_base_error_subclassing 263
function test_repo_save_and_get 276
function test_repo_get_returns_none_for_missing 285
function test_repo_delete_removes_entity 291
function test_repo_delete_nonexistent_returns_false 300
function test_repo_list_empty 306
function test_repo_list_with_items 312
function test_repo_list_pagination 320
function test_repo_save_updates_existing 333
function test_service_instantiation 349
function test_service_with_config 356
function test_service_initialize_updates_config 361
function test_service_start_stop_no_exception 367
function test_service_get_health_returns_healthy 373
function test_service_get_metadata_returns_component_metadata 379
function test_traces_attaches_metadata_to_class 392
function test_traces_attaches_metadata_to_function 401
function test_traces_raises_on_empty_reqs 408
function test_traces_raises_on_invalid_req_format 415
function test_traces_multiple_reqs 422
function test_traces_us_id_format_accepted 429
function test_traces_does_not_alter_function_behavior 436
function test_traces_stacks_on_same_object 444
function test_trace_info_to_dict 458
function test_validation_report_coverage_empty 475
function test_validation_report_coverage_partial 480
function test_validation_report_to_dict_structure 490
function test_validate_traces_all_verified 508
function test_validate_traces_missing_requirement 516
function test_validate_traces_orphan_annotation 522
function test_validate_traces_duplicates_detected 528
function test_lru_cache_put_and_get 540
function test_lru_cache_miss_returns_none 546
function test_lru_cache_evicts_lru_when_full 551
function test_lru_cache_ttl_expiry 565
function test_lru_cache_ttl_per_entry_override 572
function test_lru_cache_invalidate_returns_true 579
function test_lru_cache_invalidate_missing_returns_false 587
function test_lru_cache_clear 592
function test_lru_cache_stats_hit_rate 602
function test_lru_cache_thread_safety 613
function test_lru_cache_update_existing_key 632
function test_span_default_construction 644
function test_span_duration_ns 651
function test_span_duration_ms 656
function test_span_duration_us 661
function test_span_to_dict 666
function test_span_status_values 686
function test_make_span_sets_start_ns 692
function test_tracer_engine_disabled_by_default 706
function test_tracer_engine_get_spans_empty 712
function test_tracer_engine_reset_clears_spans 717
function test_tracer_engine_get_slow_spans_filters 724
function test_tracer_engine_get_spans_limit 734
function test_monitor_decorator_passthrough_when_disabled 742
function test_state_manager_init 764
function test_state_manager_set_and_get 770
function test_state_manager_get_default 780
function test_state_manager_delete 788
function test_state_manager_create_namespace 800
function test_state_manager_update_state 809
function test_state_manager_health_running 819
function test_state_manager_health_after_stop 827
function test_state_manager_get_metadata 835
function test_state_manager_default_namespace 841
function test_config_manager_get_returns_default 857
function test_config_manager_set_and_get_flat_key 862
function test_config_manager_set_and_get_nested_key 869
function test_config_manager_deep_nested_get 876
function test_config_manager_to_dict_returns_copy 882
function test_config_manager_add_source_sorts_by_priority 891
function test_config_manager_convert_value_bool 901
function test_config_manager_convert_value_int 909
function test_config_manager_convert_value_float 914
function test_config_manager_convert_value_list 919
function test_config_manager_convert_value_string 925
function test_config_manager_validate_returns_empty_on_clean_config 930
function test_config_manager_path_matches_exact 937
function test_config_manager_path_matches_wildcard 943
function test_config_manager_load_from_json_file 949
function test_config_manager_load_from_yaml_file 959
function test_config_manager_env_prefix_registered 969
function test_config_manager_shutdown_cancels_watchers 977
function test_fact_scope_values 987
function test_fact_scope_membership 993
function test_component_type_has_service 1003
function test_component_type_has_kernel 1007
function test_health_status_values 1011
function test_component_scope_values 1018
function test_component_metadata_construction 1029
function test_configure_logging_does_not_raise 1046
function test_new_correlation_id_is_12_chars 1050
function test_new_correlation_id_is_unique 1055
function test_get_logger_returns_logger 1061
function test_structured_formatter_produces_json 1067
function test_get_standards_full 1090
function test_get_standards_fix_cycle 1096
function test_coding_standards_constant_not_empty 1103
function test_extract_graph_context_present 1112
function test_extract_graph_context_missing 1118
function test_extract_graph_context_empty_string 1123
function test_extract_graph_context_ignores_other_keys 1128
function test_redis_factory_default_host 1138
function test_redis_factory_custom_host 1148
function test_redis_factory_default_port 1155
function test_redis_factory_custom_port 1164
function test_redis_factory_default_db 1171
function test_redis_factory_custom_db 1178
function test_ivolk_protocol_is_checkable 1190
function test_collect_traces_on_source_dir 1221
function test_collect_traces_invalid_dir_raises 1233
function test_generate_rtm_produces_sorted_entries 1243
function test_generate_rtm_entry_structure 1253
function test_generate_rtm_writes_json_file 1272