Orchestrata Ultimate › Tests › Reference › kernel › test_config_manager_extended

Tests reference — tests/kernel/test_config_manager_extended.py

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

Prose pending.

tests/kernel/test_config_manager_extended.py

source · 23 tests · 392 lines

Extended tests for kernel.config_manager — edge cases and error paths.

Covers: kernel.config_manager

Kind Name Line Description
function test_parse_env_value_false 45 _parse_env_value returns False for false-ish strings (covers missing line 394).
function test_load_from_yaml_broad_exception 59 load_from_yaml catches broad exceptions (e.g. opening a directory).
function test_redis_keys_async 73 _redis_keys awaits async keys method.
function test_redis_keys_no_method 86 _redis_keys returns [] when redis has no keys method.
function test_redis_get_async 94 _redis_get awaits async get method.
function test_redis_get_no_method 107 _redis_get returns None when redis has no get method.
function test_redis_set_async 115 _redis_set awaits async set method.
function test_redis_set_no_method 132 _redis_set returns False when redis has no set method.
function test_load_from_redis_async_client 145 load_from_redis works with an async Redis-like client.
function test_load_from_redis_exception 166 load_from_redis catches exceptions from Redis client.
function test_set_validation_failure_logs_error 184 set returns False and logs when validation fails.
function test_set_value_unchanged_skips_change 194 _set_value early-returns True when value is unchanged.
function test_reload_yml_file 209 reload loads .yml files in addition to .yaml.
function test_reload_with_redis 220 reload loads configuration from Redis when client is present.
function test_reload_broad_exception_rollback 242 reload catches broad exceptions and restores snapshot.
function test_version_trimming 263 Only the last 100 versions are kept.
function test_generate_documentation_truncates_long_values 280 Documentation truncates values longer than 50 characters.
function test_apply_template_invalid_yaml 295 apply_template catches exceptions from invalid YAML.
function test_persist_to_redis_exception 312 persist_to_redis catches exceptions from Redis client.
function test_watch_files_detects_changes 331 _watch_files detects YAML file modifications and reloads config.
function test_set_encrypted_exception 366 set_encrypted catches encoding errors.
function test_get_decrypted_corrupted_value 373 get_decrypted returns None when base64 decoding fails.
function test_dry_run_key_validation_failure 386 dry_run reports per-key validation errors.